Get only IATA code with geocoding

后端 未结 3 1023
囚心锁ツ
囚心锁ツ 2021-02-13 20:49

How can I have just the IATA codes with Google Maps? I just found out how to get the address and city, but I need to grab just the IATA code, like NYC or JFK etc. How can I do t

3条回答
  •  没有蜡笔的小新
    2021-02-13 21:34

    You can try use this service:

    GET Request Params: http://iatageo.com/getCode/{lat}/{lng}

    GET Request Example: http://iatageo.com/getCode/-15.4343434/-47.323232

    This will return a JSON, for example:

    {
      "code": "BSB",
      "distance_meters": "127763.232556459"
    }
          

提交回复
热议问题