Skip to main content
A newer version of this page is available. .

BingRouteDataProvider.CalculateRoute(List<RouteWaypoint>) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.2.dll

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);

The following code snippets (auto-collected from DevExpress Examples) contain references to the CalculateRoute(List<RouteWaypoint>) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also