我的结果不合逻辑。查询以下内容时我只收到一个事件
SELECT name, venue, location, start_time, eid FROM event
WHERE eid IN (
SELECT eid FROM event_member
WHERE (uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) OR uid = me())
)
AND start_time > now()
AND venue.latitude < '-22.821757'
AND venue.latitude > '-23.056989'
结果:
{
"data": [
{
"name": "Beijaço de recepção ao Papa Bento XVI",
"venue": {
"street": "",
"city": "",
"state": "",
"country": "",
"latitude": -22.97444595952,
"longitude": -43.187243996668,
"id": 152289418168750
},
"location": "Praia Copacabana - Rio de Janeiro - Brasil",
"start_time": "2013-07-23T14:00:00",
"eid": 304646919571378
}
]
}
但是如果我删除最后一行,只设置一个纬度限制,我会得到一堆结果,包括一些肯定会显示在完整查询中的结果,例如:
{
"name": "Wobble apresenta: RUIDO",
"venue": {
"id": 245734958851552
},
"location": "00 Rio de Janeiro",
"start_time": "2013-02-15T22:00:00-0200",
"eid": 132007820298359
},
哪个场地有“纬度”:-22.978986942704
这是一个错误还是我做错了什么?
http://itouchmap.com/latlong.html - 如果您想使用您的帐户进行测试,请检查您的纬度
https://developers.facebook.com/tools/explorer/ - Facebook 的 Graph API 浏览器