#aircraft #ads-b #icao #lookup

aircraft_icao_country

Library of aircraft ICAO codes and their country of origin

5 stable releases

1.0.4 Nov 27, 2023
1.0.3 Apr 21, 2023
1.0.0 Apr 20, 2023

#563 in Data structures

MIT license

740KB
319 lines

aircraft_icao_country

Crates.io License: MIT

A Rust library for finding the country of origin for an ICAO hex ID.

Features

  • Look up an aircraft's country of origin based on its ICAO hex ID.
  • Based on tar1090's flags.js

Installation

Add the following to your Cargo.toml:

[dependencies]
aircraft_icao_country = "1.0.4"

Usage

use aircraft_icao_country::Allocs;

let allocs = Allocs::new();
assert_eq!(allocs.find_from_hex("a67bd3"), Some("United States"));

For more examples and usage details, please refer to the documentation.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Author

John Wiseman jjwiseman@gmail.com/lemonodor

Repository

https://github.com/wiseman/aircraft_icao_country

No runtime deps