Problem with Location Recognition radius parameter

Aleksandar Cvetkovic 0 Reputation points Microsoft Employee
2024-08-04T11:08:26.31+00:00

Radius parameter in Bing Maps API does not work for me. Whichever value I set it seems that only the default value of 0.25km is being used as a maximum radius.

I tried passing the parameter value in a dict, as part of the URL, with keywords: radius, distance, r. Changed the order of parameters, added and removed parameters, tried different distance units but nothing seems to work.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
736 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 18,686 Reputation points Microsoft Employee
    2024-08-05T14:43:31.77+00:00

    I just tested it, and it worked fine. Note that this service can return a max of 20 results (default is 10), so not every result within 2KM will be returned. Here is the URL I tested with:

    https://dev.virtualearth.net/REST/v1/locationrecog/47.699528,-122.119397?radius=2&key=MyBingMapsKey

    Also note that the Bing Maps platform is being retired. The announcement says to consider moving to Azure Maps. Azure Maps does have a lot of Search services that can find points of interests. Here are some resources:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.