Click or drag to resize

RouteGetDirections Method (UnitSystem, String, IAsyncDirectionsHandler, CancellationToken)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets the Directions for the route using the specified units. Directions events are sent to 'handler' as directions are built. Calculation of the directions can be cancelled using the CancellationToken parameter.

Namespace:  Telogis.GeoBase.Routing
Assembly: (in Version:
public Directions GetDirections(
	UnitSystem units,
	string culture,
	IAsyncDirectionsHandler handler,
	CancellationToken cancelToken


Type: Telogis.GeoBase.NavigationUnitSystem
Defines the unit system used when generating natural-language directions. In the USA you would typically use ImperialFeet and in Australia you would typically use Metric. This ensures that the generated directions are given in units familiar to the end user.
Type: SystemString
The culture that the returned Directions will use.
Type: Telogis.GeoBase.RoutingIAsyncDirectionsHandler
A handler for asynchronous generation of directions.
Type: Telogis.GeoBase.ConcurrencyCancellationToken
The cancellation token used to request calculation cancellation.

Return Value

Type: Directions
Directions for this route. An aborted call returns null.


IRouteGetDirections(UnitSystem, String, IAsyncDirectionsHandler, CancellationToken)