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

Add ICAO registration country #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add ICAO registration country #92

wants to merge 1 commit into from

Conversation

rosorio
Copy link

@rosorio rosorio commented Nov 11, 2015

I made the required changes to display the registration country code based on the ICAO id. Country codes are returned in the ISO 3166-1 alpha-2 format. I made changes as light as possible and respectful of your coding styles.

regards

  • rodrigo

{"OM",BLK_1024,0x70c000,0xfffc00},
{"BN",BLK_1024,0x895000,0xfffc00},
{"SB",BLK_1024,0x897000,0xfffc00},
{"00",BLK_1024,0x899000,0xfffc00},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What Country are 00's? There are 3 instances of "00".

@don-willingham
Copy link

I pulled in a set of flag icons from https://addons.mozilla.org/en-US/firefox/addon/flagfox/, and it displays the flag next to the two character code. I still want to handle the 00's and add a flag for "yu". See don-willingham@6634aff

@rosorio
Copy link
Author

rosorio commented Mar 28, 2016

The ICAO has reserved block of address for temporary use, and there is no country. I put 00 for those blocks.

YU is Yugoslavia, I don't think you will find a flag, because the country doesn't exist anymore. It was divide around 2008 in two countries (https://en.wikipedia.org/wiki/Yugoslavia) but still exist in icao list of countries.

@don-willingham
Copy link

I now only display the flag if registration is not 00. There was a flag for Yugoslavia. Although chances are low that an aircraft would have that code, I wanted to still handle that case, instead of treating it like 00. I chose the flag for Federal Republic of Yugoslavia (1992–2003) from https://en.wikipedia.org/wiki/Serbia_and_Montenegro as it was most recent. I'm not sure if there are political and cultural reasons to go either way. I submitted pull request #101.

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

Successfully merging this pull request may close these issues.

2 participants