Azure Maps Total Results at 100

Wesley Renaud 0 Reputation points
2024-06-26T13:39:39.89+00:00

In Azure Maps when I perform a search/nearby request the total results field is never greater than 100.

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. Michael Taylor 54,806 Reputation points
    2024-06-26T14:10:07.3366667+00:00

    You didn't specify how you're querying the data but if you're using the REST API then it, like most APIs that return sets of data, uses paging. Just a quick review of one of the search docs shows that the limit parameter (which is the max # of items to return) is defined to be between 1 and 100. Thus, at least for this API, you can only fetch 100 results at a time. If you need more then you need to query again using the previous paging information to fetch the next set of data.


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.