Click or drag to resize

PolygonDistanceTo Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets the shortest distance from the given location to the edge of this Polygon, in the specified units. If the given location is inside this Polygon, the distance returned will be zero. See QuickDistanceTo(LatLon, DistanceUnit) remarks for comment on the accuracy of this method.

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

Parameters

location
Type: Telogis.GeoBaseLatLon
Location
units
Type: Telogis.GeoBaseDistanceUnit
The result will be measured in these units

Return Value

Type: Double
Shortest distance from loc to the edge of this Polygon in units units, or zero if loc is inside the Polygon.
See Also