【问题标题】:Is it possible to obtain the Instagram 'location-id' given the coordinates?给定坐标是否可以获得 Instagram 的“位置 ID”?
【发布时间】:2017-11-06 22:44:31
【问题描述】:

我正在尝试获取某个位置的 Instagram 位置 ID,但我只有该位置的坐标。是否可以通过API自动获取?

谢谢,

【问题讨论】:

    标签: facebook facebook-graph-api instagram instagram-api


    【解决方案1】:

    您必须使用location/search 端点来搜索坐标,它将显示附近的所有位置。

    https://api.instagram.com/v1/locations/search?lat=LAT&lng=LNG&access_token=ACCESS-TOKEN
    

    https://www.instagram.com/developer/endpoints/locations/#get_locations_search

    【讨论】:

      【解决方案2】:
      Request Url : https://api.instagram.com/v1/locations/search?access_token=&lat=12.8282669&lng=80.0511868&distance=100&count=1
      
      Getting improper response When I try above location search ,
      
      Response: 
      {
      "data": [
      {
      "id": "112419772139227",
      "name": "CEOA Matriculation School",
      "latitude": 9.90604,
      "longitude": 78.10873
      }
      ],
      "meta": {
      "code": 200
      }
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-07-30
        • 1970-01-01
        • 1970-01-01
        • 2012-07-22
        • 1970-01-01
        相关资源
        最近更新 更多