Get only IATA code with geocoding

geocoding, google-maps, google-maps-api-3

Solution

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

Problem

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.

Original source