Appearance
GeoCoordinate beta
A geographic coordinate. Construct one for a point of interest, or receive a live fix from environment.location.current() (which additionally populates horizontalAccuracy and timestamp).
Static Methods
_fromFix()
javascript
GeoCoordinate._fromFix(): voidBuild a GeoCoordinate from a native fix dictionary.
Returns: void
Instance Methods
distanceTo()
javascript
distanceTo(other: GeoCoordinate): numberGreat-circle distance to another coordinate, in metres (haversine, 6371 km).
Parameters:
other(GeoCoordinate)
Returns: number
bearingTo()
javascript
bearingTo(other: GeoCoordinate): numberInitial great-circle bearing to another coordinate, in degrees (0–360, from north).
Parameters:
other(GeoCoordinate)
Returns: number