This example obtains information about a geographical point using Microsoft’s Azure Geocode service.
NOTE:
To incorporate this solution within your DevExpress-powered app, you need an Azure Maps service key. Replace theAzureKey
property value with your subscription key to connect to Azure Maps.
Implementation Details
TextEdit
elements specify a geographical point (GeoPoint.Longitude
and GeoPoint.Latitude
). The “Search for Location” button initiates the geocode request. It obtains point information and passes it to the RequestLocationInformation method.
Results contain an address (LocationInformation.Address
) and exact coordinates (LocationInformation.Location
). Results are displayed within the DevExpress MemoEdit
UI element.
Output:
Files to Look At
Documentation
More Examples
- WinForms Maps - Create a Custom Search Panel Using the Microsoft Azure Maps Search Service
- WinForms Maps - Use the Azure Maps Route Service to Calculate Routes between GeoPoints on a Map Surface
Does this example address your development requirements/objectives?
(you will be redirected to DevExpress.com to submit your response)