ram-nadella / airport-codes

Airport codes (IATA) and their corresponding information. Also available as a web service.
airport-codes.herokuapp.com
29 stars 18 forks source link

Airport codes

Airport codes and their corresponding data.

Transform the data provided by OpenFlights into a JSON format so that it can be looked up by IATA airport code.

Data Format

Original

Fileds in the order of appearance, in the original data source

Sample entries from the database

507,"Heathrow","London","United Kingdom","LHR","EGLL",51.4775,-0.461389,83,0,"E" 26,"Kugaaruk","Pelly Bay","Canada","YBB","CYBB",68.534444,-89.808056,56,-6,"A" 3127,"Pokhara","Pokhara","Nepal","PKR","VNPK",28.200881,83.982056,2712,5.75,"N"

Transformed

A JSON object with airport data represented as objects with IATA codes as the key. For example "LHR": {"name": "Heathrow", "city": "London", ...}

Sample entry

{
    "altitude": "83",
    "city": "London",
    "country": "United Kingdom",
    "dst": "E",
    "iata": "LHR",
    "icao": "EGLL",
    "latitude": "51.4775",
    "longitude": "-0.461389",
    "name": "Heathrow",
    "timezone": "0"
}

Credits

Big thanks to OpenFlights for collecting and making this data available. Check out their website for additional data about airlines, routes etc.