This example uses Microsoft’s Azure Maps Search Service to search for and obtain information on a specific map location.
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.
The original search panel is hidden. The DevExpress TextEdit
UI element is used to specify a search keyword. The “Search for Location” button initiates the search request. To obtain search results, our AzureSearchDataProvider.SearchCompleted
event is raised. The SearchCompletedEventArgs.RequestResult
method returns a SearchRequestResult
descendant (used to store search results). Results displayed within the DevExpress MemoEdit
element include display name, address, and geographic coordinates (latitude and longitude) for a given search location:
Output:
- WinForms Maps - Obtain Information about a Geographical Point Using the Microsoft Azure Maps Geocode Service
- WinForms Maps - Use the Azure Maps Route Service to Calculate Routes between GeoPoints on a Map Surface
(you will be redirected to DevExpress.com to submit your response)