BingRouteDataProvider.CalculateRoute(List<RouteWaypoint>, Object) Method
In This Article
Calculates the most optimal route for the specified list of waypoints for the specified user state.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v24.2.dll
NuGet Package: DevExpress.Wpf.Map
#Declaration
public void CalculateRoute(
List<RouteWaypoint> waypoints,
object userState
)
#Parameters
Name | Type | Description |
---|---|---|
waypoints | List<Route |
A list of Route |
user |
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, null);
See Also