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