Hacker News new | ask | show | jobs
by thekyle 2534 days ago
I'm not sure if that is a feature that the Bing API supports. I couldn't find anything about looking up coordinates in the docs: https://docs.microsoft.com/en-us/azure/cognitive-services/bi....
1 comments

Yeah their documentation is dreadful, but they could just append loc:countryCode to the query before making the API request: e.g. ‘attractions loc:dk’.. at least that works for me despite some people mentioning this filter is no longer supported.

Not sure how DDG and other search engines that rely on Bing does it, but it’s certainly possible without sharing the users’ IP with Microsoft.