Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BingRouteDataProvider.CalculateRoute(List<RouteWaypoint>, Object) Method

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<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, null);
See Also