Skip to main content

BingRouteDataProvider.CalculateRoute(List<RouteWaypoint>) Method

Calculates the most optimal route for the specified list of waypoints.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public void CalculateRoute(
    List<RouteWaypoint> waypoints
)

Parameters

Name Type Description
waypoints List<RouteWaypoint>

A list of RouteWaypoint objects.

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