GISObjectDistanceTo Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculate the shortest distance from the given point to this GISObject.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public abstract double DistanceTo(
LatLon location,
DistanceUnit units
)
Public MustOverride Function DistanceTo (
location As LatLon,
units As DistanceUnit
) As Double
Parameters
- location
- Type: Telogis.GeoBaseLatLon
The given point, as a LatLon. - units
- Type: Telogis.GeoBaseDistanceUnit
The desired DistanceUnit of the calculated distance.
Return Value
Type:
DoubleDistance in given units
Remarks
This distance is calculated using an arc, as opposed to the (longer) straight-line distance.
The use of an arc returns the true shortest distance, taking into account the curvature of
the earth's surface.
See Also