4

当我试图通过 FQL 获取用户的当前位置时,Graph API 返回了这样的内容;

{
  "data": [
    {
      "current_location": {
        "city": "Izmir",
        "state": "Izmir",
        "country": "Turkey",
        "zip": "",
        "id": 107968765903327,
        "name": "İzmir, Turkey"
      }
    }
  ]
}

使用上面的 Graph ID,我检查了来自https://graph.facebook.com/107968765903327的位置信息,这次我获得了有关城市的更多数据;

{
   "id": "107968765903327",
   "name": "\u0130zmir, Turkey",
   "link": "http://www.facebook.com/pages/\u0025C4\u0025B0zmir-Turkey/107968765903327",
   "likes": 178460,
   "category": "City",
   "is_published": true,
   "is_community_page": true,
   "description": "\u003Cp>\u003Cb>Izmir\u003C/b> is a large ...",
   "location": {
      "latitude": 38.4072,
      "longitude": 27.1503
   },
   "checkins": 9059,
   "talking_about_count": 238710
}

但是,如您所见,国家代码没有这些选项的机会。还有其他建议吗?

4

1 回答 1

4

反向地理编码可以帮助查看https://developers.google.com/maps/documentation/geocoding/

于 2012-03-22T09:51:20.853 回答