question

rickepstein avatar image
0 Votes"
rickepstein asked IoTGirl edited

Bing API With Business Location

I am building a query in which I submit a business name, city, state. This is the syntax of the URL "http://dev.virtualearth.net/REST/v1/Locations?q=" & loc & "&key=" & MyBingKey
When I go to https://www.bing.com/maps and enter in the same string for "loc", it returns the correct results. When I do it through the link, the results are very incorrect. Any suggestions?

azure-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IoTGirl avatar image
1 Vote"
IoTGirl answered RickEpstein-8939 published

Those are two very different searches. You are using an Autosuggest Bing search in the Bing.com case and your are using a Location API in the URL which is expecting an address not a business name.

A Business name is not an address so the Maps Location API will not find it.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What would be the correct API to use? What would the syntax look like in my URL?

0 Votes 0 ·
RickEpstein-8939 avatar image
0 Votes"
RickEpstein-8939 answered

What would be the correct API to use? What would the syntax look like in my URL?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IoTGirl avatar image
1 Vote"
IoTGirl answered IoTGirl edited

Hi Rick,
You have asked this question is the Answers forum as well so I will give you the same answer here.
1. The Business Search on Bing.com comes from Bing Search not maps
2. Bing Maps does not offer a search by Business name (You would need to look at Bing Search APIs)
3. Azure Maps does offer a POI search by Business name and you can find the details here: https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-best-practices-for-search (Scroll down to the section on "POI")

Sincerely,
IoTGirl



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.