NodeDistance(IGeoLocatable, IGeoLocatable) Method
Gets the distance from one
Node to another.
Namespace: InnerDrive.GeographyAssembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
public static Length Distance(
IGeoLocatable origin,
IGeoLocatable destination
)
- origin IGeoLocatable
- The Node from which to find the distance.
- destination IGeoLocatable
- The Node to which to find the distance.
LengthThe
Length (distance) from
origin to
destination.
The
Elevation is not considered in the calculation.
This method is designed primarily to determine terrestrial-scale distances between points.
Because it uses the average of the WGRS 80/84 semi-major and semi-minor axes as the radius
of the earth, and assumes the earth is a perfect sphere, the return values will have
inaccuracies of up to 3 m per 1 km of distance returned.