How can I get over 60 results from the Google Places API?

I managed to get the result of the email branch on the Google Places API below.

https://maps.googleapis.com/maps/api/place/search/xml?location=35.610418,139.182358&radius=1000000&types=post_office&language=ja&sensor=false&key= "MyKey"

But on the third page there are no tags "next_page_token", you can not get the following results.

How can I get more than 60 results after the fourth pages?

+6
source share
3 answers

An old question, but I thought that I would indicate " Radar Search" to get up to 200 places . The response simply returns a place identifier, which can then be used to get detailed information.

As of June 30, 2017, the radar search is out of date. This feature is disabled as of June 30, 2018.

+3
source

Contact Google sales for a business license with higher limits of use .... or are you trying to clear the results?

+2
source

@ user1774357 I know this is old, but I can help someone else.

I wrote this solution in ruby.

Image explains https://i.imgur.com/hM9dtQ4.jpg

  1. Get southwest and coordinate northeast.

  2. Then you will need to create the coordinates for the grid. For ruby, I used GeoPoint . For the point I can tell, give me the coordinates 1 km west of this point GeoPoint.new(point_1.destination_point(0, 1.0).to_dms)

  3. After receiving the list of coordinates (from the grid), send them all one by one to Google Places to create a list. There are 20 points on the image, so I had to send 20 requests, which took about 1 minute.

  4. Combine the list and make sure they are unique.

0
source

Source: https://habr.com/ru/post/1442068/


All Articles