junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
527 stars 151 forks source link

Determine the country of registration for an aircraft #123

Closed deepcoder closed 2 years ago

deepcoder commented 2 years ago

I apologize, I'm sure this is such a basic question. I am not able to see away to determine the country of origin of an aircraft from any of the apis here. Or is this something that is determined directly from the IAOC code of the aircraft. Thx!

xoolive commented 2 years ago

Each icao24 identifier fits within a range that is assigned to a country. There are official lists here and there, e.g. here

Be aware that in some cases, the country associated with the icao24 id could differ from the country you can infer from the registration/tail number.

deepcoder commented 2 years ago

Thank you for you reply and information. I will try to use this JSON data and see what I get.