CLLocationCoordinate2D
public extension CLLocationCoordinate2D
-
Converts a
CLLocationCoordinate
to aCLLocation
.Declaration
Swift
var location: CLLocation { get }
-
Returns a new
CLLocationCoordinate
value with a new latitude constrained within 360 degrees.Declaration
Swift
func wrap() -> CLLocationCoordinate2D
-
Returns a new
CLLocationCoordinate
where 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) -> CLLocationCoordinate2D
Parameters
end
The coordinate to possibly wrap, if needed.