Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to get information about a geographical point using the MS Bing Geocode data provider

$
0
0

This example demonstrates how to obtain information about a geographical point from the Bing Geocode data provider using the BingGeocodeDataProvider.RequestLocationInformation method.

To see how it works, do one of the following:
- locate a desired geographical point on a map and click it;
or
- specify coordinates of a geographical point in Latitude and Longitude text boxes and then click the Request Location Information button.

After performing one of the two approaches, the coordinates of the current geographical point are passed to the BingGeocodeDataProvider.RequestLocationInformation method. Results contain an address (LocationInformation.Address), the entity type (LocationInformation.EntityType) and exact coordinates (LocationInformation.Location) that are shown in the RichTextBox element.


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


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>