Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AviTab incorrectly uses ID instead of ICAO code #208

Open
fpw opened this issue Jun 14, 2024 · 0 comments
Open

AviTab incorrectly uses ID instead of ICAO code #208

fpw opened this issue Jun 14, 2024 · 0 comments

Comments

@fpw
Copy link
Owner

fpw commented Jun 14, 2024

Airports in X-Plane have two kinds of IDs: an internal airport ID and an optional (!) ICAO code.

The airport ID is given with rowcode 1 in column 5:

1 55 0 0 EDHL Luebeck Blankensee

And the ICAO code is optionally given with rowcode 1302:

1302 icao_code EDHL

For 99% of the airports, the ID is the same. But there are some new airports that were added to the scenery before the ICAO code was assigned, for example RPLK:

1 317 0 0 XRP0042 Bicol Intl
1302 icao_code RPLK

AviTab uses XRP0042 as internal ID, so the airport can't be found when searching for RPLK. And when searched as "Bicol", it can be found but there are no charts since XRP0042 is used to query the navdata providers.

As a fix, I think AviTab should introduce a kind of search key for airports that's set to the ID by default but overridden with the ICAO code if present. And when querying the providers, the ICAO code should always be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant