none
Bing Maps API Fails to Find Certain Addresses RRS feed

  • Question

  • I have a site that geocodes addresses using the Bing Maps API.  The API is failing to find certain addresses, that I can successfully find using the Bing Maps website.  Here are some examples of addresses that appear on the site but not via the API:

    1415 bradshaw ave 43920

    13800 Ford Ln 44021

    3505 hilda ave. 45211

    9752 Solon Drive 45242

    Any idea why the API would fail for those addresses?  Is there a setting I can change to find them?

    Here's my code:

                GeocodeRequest geocodeRequest = new GeocodeRequest();
                // Set the credentials using a valid Bing Maps key
                geocodeRequest.Credentials = new GeocodeService.Credentials();
                geocodeRequest.Credentials.ApplicationId = BingMapsAPIKey;
    
                // Set the full address query
                geocodeRequest.Query = address;
    
                // Set the options to only return high confidence results 
                ConfidenceFilter[] filters = new ConfidenceFilter[1];
                filters[0] = new ConfidenceFilter();
                filters[0].MinimumConfidence = GeocodeService.Confidence.High;
    
                // Add the filters to the options
                GeocodeOptions geocodeOptions = new GeocodeOptions();
                geocodeOptions.Filters = filters;
                geocodeRequest.Options = geocodeOptions;
    
                // Make the geocode request
                GeocodeServiceClient geocodeService = new GeocodeServiceClient("BasicHttpBinding_IGeocodeService");
                return geocodeService.Geocode(geocodeRequest);

    Thanks,

    Dan

    Saturday, October 6, 2012 10:28 PM

Answers

  • You have your confidence level set to high. This will filter out a lot of addresses.

    http://rbrundritt.wordpress.com

    • Marked as answer by dmclean93 Sunday, October 7, 2012 9:24 PM
    Saturday, October 6, 2012 11:11 PM

All replies