Hi,
I am trying to use the GeoCodeAsync to find the Location of a given address.
I get a response == Success but NO result results ( e.Response.Results == 0 )
Doing the same from the Bing webpage works fine (finds the address and shows the map).
| private void Button_Click(object sender, RoutedEventArgs e) |
| { |
| var bing = new BingGeocodeProvider { MapControl = RadMap1 }; |
| bing.ApplicationId = BingMapHelper.VEKey ; |
| bing.GeocodeCompleted += bing_GeocodeCompleted; |
| var address = new Address { AddressLine = addressLine.Text }; |
| var request = new GeocodeRequest { Address = address }; |
| bing.GeocodeAsync(request); |
| } |
| void bing_GeocodeCompleted(object sender, GeocodeCompletedEventArgs e) |
| { |
| var summary = e.Response.ResponseSummary; |
| if ( summary.StatusCode == ResponseStatusCode.Success) |
| { |
| var results = e.Response.Results; |
| } |
| } |