This example demonstrates how to obtain information about a geographical point from the Bing Geocode web service using the BingGeocodeDataProvider.RequestLocationInformation method.
To do this, specify a geographical point (GeoPoint.Longitude and GeoPoint.Latitude) in the TextBox elements. Then, click the Request Location button. It handles the requestLocation_Click event and all parameters are passed to the RequestLocationInformation method.
Results contain a location name (LocationInformation.DisplayName), entity type (LocationInformation.EntityType ), address (LocationInformation.Address) and exact coordinates ( LocationInformation.Location) that are shown in the TextBlock element below.
Note that if you run this sample as is, you will get a warning message informing 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.