CLLocationCoordinate2D
public extension CLLocationCoordinate2D
-
Converts a
CLLocationCoordinateto aCLLocation.Declaration
Swift
var location: CLLocation { get } -
Returns a new
CLLocationCoordinatevalue with a new latitude constrained within 360 degrees.Declaration
Swift
func wrap() -> CLLocationCoordinate2D -
Returns a new
CLLocationCoordinatewhere the longitude is wrapped if the distance from start to end longitudes is between a half and full world, ensuring that the shortest path is taken.Declaration
Swift
func unwrapForShortestPath(_ end: CLLocationCoordinate2D) -> CLLocationCoordinate2DParameters
endThe coordinate to possibly wrap, if needed.
CLLocationCoordinate2D Extension Reference