Get totalResults from GetSearchPOI

kanupriya Goel 21 Reputation points
2021-04-20T20:49:51.193+00:00

I am running a query

Query = "Petrol STations"
CountrySet ="GB"

Totalresults returned are 9600, as per documentation I cannot get more than first 2K records. Is there a way this can be done, any workaround?

I am not able to find a way to put in any request for this and this is very important for my business use case.

Any help is appreciated.

Thanks,
Kanupriya

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

Accepted answer
  1. rbrundritt 18,686 Reputation points Microsoft Employee
    2021-04-20T21:59:20.477+00:00

    As per the documentation, this service only allows you to retrieve the first 2,000 results. You can however look at breaking and filter based on category set. In most cases you would end up being able to retrieve all the POI's, with the odd case where there is more than 2,000 of the same POI type in the same area.

    What is your business case that requires retrieving all these POI's? There are some other services we are investigating which might better suit your needs in the future.


0 additional answers

Sort by: Most helpful

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.