LatLon Structure |
Namespace: Telogis.GeoBase
The LatLon type exposes the following members.
Name | Description | |
---|---|---|
LatLon(LatLon) |
Create a copy of a LatLon.
| |
LatLon(String) |
Takes a string of form "latitude,longitude" and creates a LatLon object.
| |
LatLon(UInt64) |
Initialize from 64bit integer. See AsInt64.
| |
LatLon(XmlNode) | Construct a new LatLon from an XML node. As of 4.3: Retrieving the 'Location' attribute if it is present. Pre 4.3: Retrieving the old attributes "Lat" and "Lon". | |
LatLon(Double, Double) |
Initialize from parameters.
| |
LatLon(Double, Double, UInt32) |
Initializes a LatLon object with a latitude, longitude, and z-level.
|
Name | Description | |
---|---|---|
AsInt64 |
Return Latitude and Longitude packed as a 64bit integer.
| |
IsValid |
True only if this LatLon has been assigned a valid value.
| |
Lat |
Latitude (Y) in degrees.
| |
Lon |
Longitude (X) in degrees.
| |
WKT |
Return this point formatted for WKT (Well Known Text).
| |
WKTWithZ |
Return this point formatted for WKT (Well Known Text) with Z level.
| |
x |
Gets or sets Lon.
| |
y |
Gets or sets Lat.
| |
ZLevel |
Gets or sets the z-level of this LatLon. It is used to determine whether there is a height
difference between overlapping LatLons, for example when one road crosses another road as a bridge.
|
Name | Description | |
---|---|---|
DistanceTo | Measure distance between this and another LatLon (using GreatCircle(Double, Double, Double, Double)) in the specified units. May have error of up to ~16 cm at equator (less, the further away from the equator the points are) | |
Equals |
Check for equality with another LatLon by checking if they occupy the same coordinates.
(Overrides ValueTypeEquals(Object).) | |
FromParts |
Create a LatLon from position parameters.
| |
GetHashCode |
Create a hash code for this LatLon.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsWithin |
Check whether this LatLon lies within a box defined by the minimum and maximum LatLons. See remarks.
| |
PythagoreanDistanceTo | Obsolete.
This method is obsolete. Please use QuickDistanceTo(LatLon, DistanceUnit) instead.
| |
QuickDistanceTo |
Measure approximate distance between this and another LatLon (using a Pythagorean approximation).
See remarks for comments on the accuracy of this method.
| |
ToString | (Overrides ValueTypeToString.) | |
ToStringWithZ | ||
ToXmlString |
Return the LatLon in it's String With Z form Location="0.000000,0.000000 Z0".
|
Name | Description | |
---|---|---|
Equality |
Checks two LatLons for equality.
| |
Inequality |
Checks two LatLons for inequality.
|
Related articles: Common Concepts, Geocoding Concept, Map Control Tutorial, Creating a Route, Routing with Traffic.