Foursquare -如何使用Foursquare API获得超过100个场地

Foursquare - How to get more than 100 venues using foursquare API?

本文关键字:Foursquare 100个 何使用 API      更新时间:2023-09-26

在Foursquare API资源管理器窗口中,我们使用了端点的"场馆/搜索?ll=39.8647,-86.2604&intent=browse&radius=20000&limit=200"来获取超过100个的场馆,但它应该只返回50个场馆。

Can anyone kindly give the solution that which endpoints be able to get more than 200 venues using foursquare API?

谢谢,Bargavi

您应该试试"场馆/探索"端点。它有一个偏移量参数,用于遍历结果。

但是,它可能不会返回您期望的结果,因为它浏览当前用户推荐的场所。但是您可以在之后使用几行代码按距离对场馆进行排序。