GeoJSONPosition
public struct GeoJSONPosition
extension GeoJSONPosition: Equatable
Fundamental geometry construct. All other GeoJSON geometry types are built based on it.
-
Create a
GeoJSONPosition
Declaration
Swift
public init(longitude: Double, latitude: Double, elevation: Double? = nil)
Parameters
longitude
The longitudinal coordinate.
latitude
The latitudinal coordinate.
elevation
The elevation at the coordinates.
-
The longitudinal coordinate.
Declaration
Swift
public let longitude: Double
-
The latitudinal coordinate.
Declaration
Swift
public let latitude: Double
-
The elevation at the coordinates.
Declaration
Swift
public let elevation: Double?
-
Equatable implementation
Declaration
Swift
public static func == (lhs: GeoJSONPosition, rhs: GeoJSONPosition) -> Bool