Click or drag to resize

LatLonDistanceTo Method

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

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)

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public double DistanceTo(
	LatLon other,
	DistanceUnit units
)

Parameters

other
Type: Telogis.GeoBaseLatLon
Destination LatLon.
units
Type: Telogis.GeoBaseDistanceUnit
Unit that the distance measurement should be returned in.

Return Value

Type: Double
The distance between this LatLon and the specified LatLon in the requested units.
Remarks
The value returned represents the distance over the face of a sphere rather than the straight line distance. See GreatCircle(Double, Double, Double, Double) for more information.
See Also