Skip to content

This example demonstrates how to create a custom search panel that searches for location, keywords, and other parameters with the BingSearchDataProvider.Search method.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-map-search-with-azure-map-search-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map for WPF - How to Search in Code with the Azure Map Search Service

This example demonstrates how to create a custom search panel that searches for location, keywords, and other parameters with the AzureSearchDataProvider.Search method.

Note: If you run this sample as is, you get a warning message saying that the specified Azure Maps key is invalid. To learn more about Azure Map keys, please refer following tutorial: Migrate from Bing Maps to Azure Maps

Implementation Details

To use the Search panel, specify search parameters (location, keyword, start search index, geographical point coordinates) in the textbox elements.

When you handle the search_Click event, all parameters are passed to the Search method, and you can see the result in the text block element below.

The results contain a display name, entity type, and address associated with the search location. You can also see search request information returned by the RequestResultBase.ResultCode, RequestResultBase.FaultReason, and SearchRequestResult.EstimatedMatches properties.

Files to Review

Documentation

Does this example address your development requirements/objectives?

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

About

This example demonstrates how to create a custom search panel that searches for location, keywords, and other parameters with the BingSearchDataProvider.Search method.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •