Coordinates
struct Coordinates
A pair of coordinates to represent a location (point).
-
The latitude of the location.
Declaration
Swift
public let latitude: Double
-
The longitude of the location.
Declaration
Swift
public let longitude: Double
-
Initializer
Declaration
Swift
public init(latitude: Double, longitude: Double)
-
Initialize a Location from a CLLocationCoordinate2D
Declaration
Swift
init(_ coordinates: CLLocationCoordinate2D)
Parameters
location
The CLLocationCoordinate2D to use to initialize the Location.