在第三页没有获得下一页标记 google 放置 api?

On third page not getting next page token google place api?

在第三页未获得下一页令牌 google 放置 api?

我在 rails 应用程序的 Ruby 中使用 Google 放置文本搜索 API,一切正常但是在第三页之后我没有得到任何下一页标记所以对于每次文本搜索我只得到 60 结果。我是否遗漏了什么,请提出任何帮助。每个文本都会发生这种情况。

  • 我要求第一页:-

    https://maps.googleapis.com/maps/api/place/textsearch/json?key=#{my_key}&query=#{my_query}
    
  • 我用令牌请求其他页面:-

    https://maps.googleapis.com/maps/api/place/textsearch/json?key=#{my_key}&pagetoken=#{next_page_token}
    

通常我在 google 上搜索它会显示 100 个相同位置文本的结果。我怎样才能得到超过 60 的结果。

这是 Google 的地点 API 的预期行为,因为您最多只能获得 60 个地点,分为 3 个页面(3 个查询)。这就是第三页没有next_page_token的原因。

By default, each Nearby Search or Text Search returns up to 20 establishment results per query; however, each search can return as many as 60 results, split across three pages. If your search will return more than 20, then the search response will include an additional value — next_page_token.

引用here.