WaypointRouteCalculator Class | ![]() |
Namespace: Telogis.GeoBase.Navigation
The WaypointRouteCalculator type exposes the following members.
Name | Description | |
---|---|---|
![]() | WaypointRouteCalculator(Route) |
Creates a Waypoint route for the
Navigator with the default MessagesBundle.
|
![]() | WaypointRouteCalculator(Route, MessagesBundle) |
Creates a Waypoint route for the
Navigator with a given MessagesBundle.
|
Name | Description | |
---|---|---|
![]() | Completed |
Returns true if all the movements have been described in the route.
|
![]() | Directions |
Returns the Directions for this route.
|
![]() | ForceWaypointOrder |
Forces Waypoints to be visited in the correct order, if true. If false, then a Waypoint may be
visited without one of the earlier ones having been visited. The default is true.
|
![]() | MessagesBundle |
The MessagesBundle, allowing for internationalization of route calculations.
|
![]() | VehicleSpec |
Gets / sets the VehicleSpec for this route.
|
Name | Description | |
---|---|---|
![]() | CancelRouteCalculation |
Cancels the route calculation.
|
![]() | DescribeNext |
This method is called by the navigator to describe the next turn on the route.
|
![]() | Dispose |
Disposes of the WaypointRouteCalculator.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsRouteLegal |
Called by the Navigator to check whether the current route is free from constraint violations
and if not, apply a routing constraint so that the next route calculated will be different.
|
![]() | RecalculateRoute |
Does the work of recalculating the route.
|
![]() | SetVisitedThreshold |
Sets the threshold for deciding when a Waypoint has been visited. The default is 300 ft.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdatePosition |
Update the GPS position.
|
For the Navigator to be able to use the route, create a route that contains only Waypoints, and then create a WaypointRouteCalculator with this route. Next, set the WaypointRouteCalculator as the Navigator's RouteCalculator.
For more information on Waypoints, see the API documentation, and the Routing and Directions topic in the GeoBase | Map Explorer section.
Route myRoute;
NavigationManager myNavMgr;
...
WaypointRouteCalculator wprc = new WaypointRouteCalculator(myRoute);
myNavMgr.Navigator.RouteCalculator = wprc;
myNav.Destination = myRoute.End;