BingRouteDataProvider.CalculateRoute(List<RouteWaypoint>, Object) Method
Calculates the most optimal route for the specified list of waypoints for the specified user state.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
waypoints | List<RouteWaypoint> | A list of RouteWaypoint objects. |
userState | Object | A Object containing the user state. |
Remarks
The following code represents an example of this method call.
List<RouteWaypoint> waypoints = new List<RouteWaypoint>() {
new RouteWaypoint("New York", new GeoPoint(41.145556, -73.995)),
new RouteWaypoint("Oklahoma", new GeoPoint(36.131389, -95.937222)),
new RouteWaypoint("Las Vegas", new GeoPoint(36.175, -115.136389))
}
RouteProvider.CalculateRoute(waypoints);
See Also