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.
positionstack - Free Address Geocoding & Maps API.
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.
Geocoding requests can be sent for every domain in which the main Google Maps application offers geocoding.
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.
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"
}
You could use the Global Airport Database. It has GPS coordinates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With