Click or drag to resize

RouteGetTimeAndDistance Method (DistanceUnit, Double, TimeSpan)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculate the time and distance for this route.

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void GetTimeAndDistance(
	DistanceUnit units,
	out double distance,
	out TimeSpan time
)

Parameters

units
Type: Telogis.GeoBaseDistanceUnit
The units to return distance in.
distance
Type: SystemDouble
Populated with the total driving distance for this route.
time
Type: SystemTimeSpan
Populated with the driving time for this route.

Implements

IRouteGetTimeAndDistance(DistanceUnit, Double, TimeSpan)
Remarks
This method does not calculate driving directions or check for route legality. Therefore, it can be used to quickly calculate driving time and distance with a low calculation cost. Distance and time are negative if this call is aborted.
See Also