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
740KB
319 lines
aircraft_icao_country
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