Click or drag to resize

IAsyncRouteCalculatorRecalculateRouteAsync Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Request route recalculation. Calls to this method can be interspersed with calls to its synchronous (blocking) version i.e. RecalculateRoute(RouteStop, RouteStop, RoutingStrategy, RouteProgress), but both have to be called on the same thread, otherwise behavior is undefined.

Namespace:  Telogis.GeoBase.Navigation
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
bool RecalculateRouteAsync(
	RouteStop start,
	RouteStop dest,
	RoutingStrategy strategy,
	RouteProgress routeProgress
)

Parameters

start
Type: Telogis.GeoBaseRouteStop
The starting point of this route.
dest
Type: Telogis.GeoBaseRouteStop
The destination point of this route.
strategy
Type: Telogis.GeoBase.RoutingRoutingStrategy
The routing strategy to use.
routeProgress
Type: Telogis.GeoBase.RoutingRouteProgress
The delegate method used to update RouteProgress bar. This callback will be called asynchronously, probably on a worker thread.

Return Value

Type: Boolean
Returns true if the route has been recalculated, or false if it has not. When it returns false, a subsequent call to this method with the same dest/strategy/routeProgress arguments and VehicleSpec property as previous will not request a new route calculation, even if "start" argument is different, instead it will check whether the previous route calculation has finished and return true or false accordingly.
See Also