Telogis.GeoBase.LatLon |
Represents a latitude-longitude coordinate pair, expressed in degrees (WGS84 World Geodetic System projection).
Name | Description |
---|---|
LatLon(lat, lon) | Arguments
|
Name | Description |
---|---|
distanceTo (LatLon other, String units) | Calculates the distance between two coordinates in the requested LatLon.distanceTo.units. Arguments
Number - The distance in given LatLon.distanceTo.units from the base object to the LatLon.distanceTo.other object. |
equals (LatLon other, Number tolerance) | Determines whether two coordinates are the same. Arguments
Boolean - Whether the latitude and longitude coordinates of the caller and LatLon.equals.other are equivalent. |
isValid () | True only if this LatLon has been assigned a valid value. ReturnsBoolean - Whether this LatLon has been assigned a valid value (i.e. lat between -90 and 90 and lon between -180 and 180 inclusive). |
isValid () | True only if this LatLon has been assigned a valid value. ReturnsBoolean - Whether this LatLon has been assigned a valid value (i.e. lat between -90 and 90 and lon between -180 and 180 inclusive). |
toString (Number precision) | Gets a string representation of the coordinates represented by the current LatLon. Arguments
String - A string of the form '($lat, $lon)'. |
wrap () | Finds a coordinate pair whose longitude is wrapped to a corresponding value between -180.0 and 180.0. Internally, this longitude exceeds these conventional bounds in order to preserve wrapping information, which is necessary for displaying maps at low zoom levels where the same point can occur twice and constructs such as MapLayers.RegionShadeLayers and MapLayers.ObjectLayers need to take this into account. ReturnsLatLon - A pair of latitude-longitude coordinates with the longitude modulated to a conventional value. |
Name | Type | Description |
---|---|---|
lat | Number | The north-south component of the coordinate pair, in degrees. |
lon | Number | The east-west component of the coordinate pair, in degrees. |
SERIAL_DP | Number | The number of decimal places that the LatLon.lat and LatLon.lon properties of LatLon instances should be specified to when they are serialized to be sent to the GeoStream server. |