ip2location / ip2location-iata-icao

This list contains the airport codes of IATA airport code and ICAO airport code together with country code and region name supported in IP2Location geolocation database.
https://www.ip2location.com
160 stars 66 forks source link

Proposal: support FAA LID codes #42

Open kylehodgson opened 2 days ago

kylehodgson commented 2 days ago

This list ignores a large category of airports

About 100 flights per day go in and out of San Martin Airport. It supports GA mostly, lots of training, and is also a relief airport for the San Francisco Bay Area. I'd like to add it to the list, but I feel like it wouldn't fit well because it doesn't have an IATA or an ICAO code. It does have an FAA location ID, E16. I'm personally tracking four such airports today, and I'm not very deep in to my project yet, likely I'll keep finding more. Users trying to use this list as a complete source of geo lookup info on airports (like me) are likely to keep hitting this wall.

Many airports won't be assigned IATA or ICAO codes

There are ~ 26,000 FAA "location IDs". Many of these are "relief airports", airfields, or "untowered airports". Often used for GA, but not exclusively, they often don't have ICAO or IATA codes. They do have an FAA "locator ID" or LID. I imagine other countries have similar situations.

While the FAA is a USA government institution, its not safe to assume that all airports with FAA LIDs (and no ICAO or IATA) are in the USA - Anguar airstrip, for instance in Palau has an FAA ID, no ICAO or IATA, but is not in the USA.

Proposed options

Option 1: Add a field to the current file

Option 2: Add a new CSV file to the repo

This approach would allow people to optionally adopt the new file if they wanted, and have the benefit of not breaking existing consumers of the existing file. A script could be built that extracts the ICAO and IATA only data from the new file to simplify and reduce the possibility of drift between the files - in this case, update contribution guidelines to ask people to only update the new file when making PRs to add new airports, and consider using GitHub actions or just a python script in the repo to generate the legacy ICAO / IATA file

Open to discussion!

ip2location commented 2 days ago

Hi @kylehodgson,

Thanks for the suggestion.

Based on our research, it seems like the FAA code are mainly used in US only. Do you have any list that contains any active airports that are located outside the US and having FAA code only besides the Angaur Airstrip? We would like to see if the numbers are good enough for us to support the code in our project.

kylehodgson commented 1 day ago

Analysis of the FAA LID codes taken from the encode/decode table from the FAA shows the following:

My thought is, that once we've agreed on how to add these to the file we can begin adding them as necessary. I don't yet see a big file that shows lat/lng for all of these LIDs unfortunately.

Comments are open on the public Google Sheet attached.