Why is bing maps api less accurate than bing.com/maps ?

s001 1 Reputation point

For example, this API query:
Returns: ...
"address":{"adminDistrict":"NH","adminDistrict2":"Grafton County","countryRegion":"United States","formattedAddress":"Haverhill, NH","locality":"Haverhill"},
"entityType":"PopulatedPlace", ...

While the website: bing.com/maps?q=211%20T%20%26%20C%20Way%20Haverhill,%20NH%2003785
Returns a proper hit.

How can I match the accuracy of the website when using the API?

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
253 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. IoTGirl 3,051 Reputation points Microsoft Employee

    Hi @s001 ,

    I can address your question by telling you there are three different APIs that make up the answer:

    1. The Documentation for Location API calls are here: https://learn.microsoft.com/en-us/bingmaps/rest-services/locations/ but your call is using the less precise query string call instead of the Address call.
    2. Bing.com/Maps uses the AutoSuggest API that allows you to type characters then choose from a potential list

    You should use the API that best matches your scenario but if you are looking for a more accurate address, try Location by address where you separate the address into the component parts before making the call.


  2. IoTGirl 3,051 Reputation points Microsoft Employee

    Hello @s001 ,

    Please try the API with the same context. When hosted in the browser, the Bing Maps V8 control gets context from the Browser. In the left menu of https://www.bing.com/api/maps/sdk/mapcontrol/isdk you can find a number of AutoSuggest samples.