Foursquare的API nearByVenue服务问题 [英] Foursquare API nearByVenue service issue
本文介绍了Foursquare的API nearByVenue服务问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Foursquare的API场地的服务..我解析nearByVenue细节,如商店,餐厅等。
假设作为一个例子我得到以下链接:
https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689
问题是,我只得到10 nearbyDetails ..假如我站在纽约应该有详细地点数目..为什么我只得到只有10个细节?
是否有任何其他服务或我下面错误的方式来使用它?
感谢
解决方案
添加→= N
,其中n是你在查询字符串的限制。默认限制设置为30
Using Foursquare api "Venue" service.. i am parsing nearByVenue details like shop, restaurant etc.
Suppose as an example i am getting following link:
https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689
Issue is I am getting only 10 nearbyDetails.. suppose I am standing in New York there should be number of venue details.. why I am getting only 10 details only ?
Is there any other service or i am following wrong approach to use it?
Thanks
解决方案
Add l=n
where n is your limit in query string. The default limit is set to 30.
https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689&l=10
这篇关于Foursquare的API nearByVenue服务问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文