Foursquare API closeByVenue 服务问题

问题描述 投票:0回答:2

使用 Foursquare API“Venue”服务..我正在解析

nearByVenue
详细信息,例如商店、餐厅等。

假设我收到以下链接:

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689

问题是我只得到 10 个

nearbyDetails
..假设我站在纽约,应该有很多场地详细信息..为什么我只得到 10 个详细信息?

还有其他服务或者我使用方法错误吗?

ios google-maps gps foursquare
2个回答
4
投票

添加

l=n
,其中 n 是查询字符串中的限制。默认限制设置为 30。

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689&l=10

0
投票

https://api.foursquare.com/v1/venues.xml?geolat=40.562362&geolong=-111.938689&l=50&q=coffee

您可以更改 l="no of result" 参数的值。

如果您想搜索特定关键字,例如 ATM、咖啡 然后你可以添加参数 q 并添加它的值,如 q="atm"、q="coffee" 等

希望对您有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.