GeographicCoordinates
public struct GeographicCoordinates
The GeographicCoordinates object encompasses the basic elements of a location on Earth, including its altitude.
-
Undocumented
Declaration
Swift
public let longitude: Degree
-
Undocumented
Declaration
Swift
public let latitude: Degree
-
Undocumented
Declaration
Swift
public let altitude: Meter
-
Returns the equivalent CLLocation object. Note the minus sign on longitude.
Declaration
Swift
public var location: CLLocation { get }
-
Convenience method
Declaration
Swift
public static var zero: GeographicCoordinates { get }
-
Returns a GeographicCoordinates object.
Declaration
Parameters
longitude
The (positively westward) longitude.
latitude
The latitude
altitude
The optional altitude (default = 0).
-
Returns a GeographicCoordinates object.
Declaration
Swift
public init(_ location: CLLocation)
Parameters
location
a CLLocation object
-
High accuracy computation of the distance between two points on Earth’s surface, taking into account the Earth flattening.
Declaration
Swift
public func globeDistance(to otherCoordinates: GeographicCoordinates) -> Meter
Parameters
otherCoordinates
The coordinates of the second point.
Return Value
The distance, in meters, between the two points, along Earth’s surface.
-
Returns the radius of the curvature of the Earth’s meridian See AA p.82-83 Symbol: Rm
Declaration
Swift
public var globeRadiusOfCurvature: Meter { get }
-
Returns the radius of the circle made at a constant latitude Uses the Earth ellipsoid as defined by IAU in 1976. See AA p.82-83. Symbol: Rp
Declaration
Swift
public var globeRadiusOfParallelOfLatitude: Meter { get }
-
Note: rho is the observer’s distance to center of the Earth (for an equatorial radius set to unity). Theta (or phi) prime is the geocentric (not geographic) latitude. See AA p.81
Declaration
Swift
public func rhoSinThetaPrime(forObserverHeight height: Double) -> Double
-
Note: rho is the observer’s distance to center of the Earth (for an equatorial radius set to unity). Theta (or phi) prime is the geocentric (not geographic) latitude. See AA p.81
Declaration
Swift
public func rhoCosThetaPrime(forObserverHeight height: Double) -> Double