NodeDistance(IGeoLocatable, IGeoLocatable) Method

Gets the distance from one Node to another.

Definition

Namespace: InnerDrive.Geography
Assembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
C#
public static Length Distance(
	IGeoLocatable origin,
	IGeoLocatable destination
)

Parameters

origin  IGeoLocatable
The Node from which to find the distance.
destination  IGeoLocatable
The Node to which to find the distance.

Return Value

Length
The Length (distance) from origin to destination.

Remarks

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.

See Also