Click or drag to resize

LatLon Methods

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

The LatLon type exposes the following members.

Methods
  NameDescription
Public methodDistanceTo

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)

Public methodCode exampleEquals
Check for equality with another LatLon by checking if they occupy the same coordinates.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromParts
Create a LatLon from position parameters.
Public methodGetHashCode
Create a hash code for this LatLon.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsWithin
Check whether this LatLon lies within a box defined by the minimum and maximum LatLons. See remarks.
Public methodPythagoreanDistanceTo Obsolete.
This method is obsolete. Please use QuickDistanceTo(LatLon, DistanceUnit) instead.
Public methodCode exampleQuickDistanceTo
Measure approximate distance between this and another LatLon (using a Pythagorean approximation). See remarks for comments on the accuracy of this method.
Public methodCode exampleToString
Returns the coordinates of this LatLon in the form "Lat,Lon".
(Overrides ValueTypeToString.)
Public methodToStringWithZ
Returns the coordinates of this LatLon in the form "Lat,Lon,Z". If ZLevel is 0 then the ZLevel is omitted.
Public methodToXmlString
Return the LatLon in it's String With Z form Location="0.000000,0.000000 Z0".
Top
Extension Methods
  NameDescription
Public Extension MethodToLatLng (Defined by Convert.)
Top
See Also