Skip to content

DevExpress-Examples/wpf-map-programmatically-search-with-the-bing-map-search-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map for WPF - How to Programmatically Search with the Bing Map Search Service

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

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 textblock element below.

The results contain a display name , entity type, and address associated with the search location. In addition, the SearchRequestResult.AlternateSearchRegions property returns results of searching alternate regions.

You can also see search request information returned by the RequestResultBase.ResultCode, RequestResultBase.FaultReason and SearchRequestResult.EstimatedMatches properties.

Note that if you run this sample as is, you will get a warning message saying that the specified Bing Maps key is invalid. To learn more about Bing Map keys, please refer to the How to: Get a Bing Maps Key tutorial.

Files to Review

Documentation

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