Accessing Additional Results in google places search

人盡茶涼 提交于 2020-01-06 14:15:20

问题


Hi to all

I am trying to get places from The Google Places API.

for the first time I got the first 20 result but when I use it second time with the request "next_page_token" like this :

https://maps.googleapis.com/maps/api/place/search/json?page_token=CkQ3AAAADjez7YyK689hZ1LwKAvXMEEuoMNwFn7tAHW5w4R6B9Izqo901-5lsC4Zk4lsFjwei0LIKmwknTAvSSJsEvclmhIQ8K9Ike7Yw8JCbAf83lGYvhoU80XJzsq0JhuedXnz5MhnqTDXxoQ&key=AddYourOwnKeyHere

then the response I get is REQUEST_DENIED

am i doing something wrong.


回答1:


try this : https://maps.googleapis.com/maps/api/place/search/xml?pagetoken=ClRBAAAAxvr8aF....LiOZ6WQlrmnsux8_icrApjJOIky&location=46.2058000,-1.1645000&radius=500&sensor=false&key=your key here

pagetoken instead of page_token ...



来源:https://stackoverflow.com/questions/11248434/accessing-additional-results-in-google-places-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!