LatLonQuickDistanceTo Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Measure approximate distance between this and another LatLon (using a Pythagorean approximation).
See remarks for comments on the accuracy of this method.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public double QuickDistanceTo(
LatLon other,
DistanceUnit units
)
Public Function QuickDistanceTo (
other As LatLon,
units As DistanceUnit
) As Double
Parameters
- other
- Type: Telogis.GeoBaseLatLon
Destination LatLon. - units
- Type: Telogis.GeoBaseDistanceUnit
Unit that measurement is returned in.
Return Value
Type:
DoubleDistance in requested units.
Remarks The Quick distance assumes that the world is flat between the two points.
This assumption is safe when the points are near each other. If the points are a significant
distance apart the straight line between the Polygon and the point will pass
through the interior of the world. To calculate the true shortest distance consider
using the DistanceTo method. The DistanceTo method calculates the distance using a
great circle which traces an arc over the surface of the earth.
Examples LatLon a = new LatLon(33.587507, -117.741057);
LatLon b = new LatLon(33.553911, -117.677531);
Double distance = a.QuickDistanceTo(b, DistanceUnit.MILES);
See Also