4

FQL を介してユーザーの現在の場所を取得しようとすると、Graph API は次のような結果を返しました。

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

上記のグラフ 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 に答える