Foursquare-如何使用Foursquare API获得100多个场所? [英] Foursquare - How to get more than 100 venues using foursquare API?

查看:59
本文介绍了Foursquare-如何使用Foursquare API获得100多个场所?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Foursquare API Explorer窗口中,我们使用了端点'venues/search?ll = 39.8647,-86.2604& intent = browse& radius = 20000& limit = 200'来获得超过100个的场所,但它应该返回只有50个场地.

In Foursquare API Explorer window, We have used the endpoints 'venues/search?ll=39.8647,-86.2604&intent=browse&radius=20000&limit=200' to get the venues more than 100 but it should return only 50 venues.

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

谢谢,巴尔加维

推荐答案

您应该尝试场地/explore" 端点.它具有一个偏移量参数以分页显示结果.

You should try the "venues/explore" endpoint. It has an offset parameter to page through results.

尽管,它可能不会返回您期望的结果,因为它会浏览当前用户的推荐场所.但是您可以随后通过几行代码按距离对场所进行排序.

Although, it might not return the results you expect since it browses recommended venues for the current user. But you can sort the venues by distance afterward with a few lines of code.

这篇关于Foursquare-如何使用Foursquare API获得100多个场所?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆