【发布时间】:2012-07-09 17:15:20
【问题描述】:
我正在尝试使用 next_page_token 参数从 textSearch 调用中获取下一页结果,但总是收到 REQUEST DENIED 错误。根据Accessing Additional Results in google places search,文档中存在错误,应使用 pagetoken 而不是 page_token。我都试过了,但对我不起作用。如果多页结果可用于 textSearch,我在文档中找不到任何位置。
【问题讨论】:
-
您能否提供一个示例查询,以便我帮助您解决问题。
-
例如,第一次查询:maps.googleapis.com/maps/api/place/textsearch/xml?key={your api key here}&sensor=false&query=restraunt+honolulu&language=en 它返回结果列表以及最后的 next_page_token。下一个查询:maps.googleapis.com/maps/api/place/textsearch/…{your api key here} 我尝试使用 page_token 和 pagetoken 并且在这两种情况下它都返回:
REQUEST_DENIED