Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get only IATA code with geocoding

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 that?

Thanks for your help.

like image 961
thegrede Avatar asked Jun 03 '12 16:06

thegrede


People also ask

Is there a free geocoding API?

positionstack - Free Address Geocoding & Maps API.

Is Google reverse geocoding free?

The Geocoding API uses a pay-as-you-go pricing model. Geocoding API requests generate calls to one of two SKUs depending on the type of request: basic or advanced. Along with the overall Google Terms of Use, there are usage limits specific to the Geocoding API.

Does Google Maps use geocoding?

Geocoding requests can be sent for every domain in which the main Google Maps application offers geocoding.

What is reverse geocoding used for?

Reverse geocoding identifies locations nearest to a latitude and longitude coordinate, enabling increased reliability of the location data. Even when addresses are unavailable, reverse geocoding software can provide corresponding addresses, based on nearby landmarks, for geolocation queries.


2 Answers

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"
}
      
like image 121
Alessandro Landim Avatar answered Sep 18 '22 05:09

Alessandro Landim


You could use the Global Airport Database. It has GPS coordinates.

like image 43
dda Avatar answered Sep 22 '22 05:09

dda