One of the simplest ways an airport gets its code is based on the actual name of the airport. For example, John F. Kennedy International Airport in New York, New York has the code “JFK” while Bradley International Airport in Windsor Locks, Connecticut has the code “BDL.”