Skip to content

Use the Azure Maps Route Service to Calculate Routes between GeoPoints on a Map Surface

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/map-for-winforms-azure-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Maps - Use the Azure Maps Route Service to Calculate Routes between GeoPoints on a Map Surface

This example calculates a route based on two or more RouteWaypoint objects.

NOTE: To incorporate this solution within your DevExpress-powered app, you need an Azure Maps service key. Replace the AzureKey property value with your subscription key to connect to Azure Maps.

Implementation Details

Right-click on a map surface to specify waypoints: origin, destination, and points in between. ListBox entries display geographical points (GeoPoint.Longitude and GeoPoint.Latitude). The “Calculate Route” button initiates the routing request by obtaining waypoint information and passing it to the CalculateRoute method. ComboBoxEdit and CheckedListBox editors specify route options (AzureRouteOptions.AvoidTypes and AzureRouteOptions.TravelMode properties).

Output:

Map

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Use the Azure Maps Route Service to Calculate Routes between GeoPoints on a Map Surface

Topics

Resources

License

Stars

Watchers

Forks