I'm writing an Android app using Foursquare APIs. I'm trying to make a request to this URL:
String url = "https://api.foursquare.com/v2/venues/search?ll=16.31503,38.973039&"
+"client_id="+CLIENT_ID+"&client_secret="+CLIENT_SECRET+"&limit=25&v="+date;
where date is formatted in YYYYMMDD. I actually have a response, but the venues
array is empty:
{
meta: {
code: 200
}
notifications: [
{
type: "notificationTray"
item: {
unreadCount: 0
}
}
]
response: {
venues: [ ]
}
}
Why is it empty?
这是因为不幸的是,您要搜索的区域并不多。看看在网络上运行相同搜索的结果: https : //foursquare.com/explore?near=16.31503%2C38.973039 (放大一点,看看有什么结果)
I confused longitude with latitude and vice versa. My mistake! Thank you (:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.