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.
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:
- WinForms Maps - Obtain Information about a Geographical Point Using the Microsoft Azure Maps Geocode Service
- WinForms Maps - Create a Custom Search Panel Using the Microsoft Azure Maps Search Service
(you will be redirected to DevExpress.com to submit your response)
(you will be redirected to DevExpress.com to submit your response)