Crate aircraft_icao_country
source ·Expand description
A library for finding the country of origin for an ICAO hex ID.
Example
use aircraft_icao_country::Allocs;
let allocs = Allocs::new();
assert_eq!(allocs.find_from_hex("a67bd3"), Some("United States"));
References
License
This library is licensed under the MIT license.
Structs
- A struct representing the allocation of ICAO hex IDs to countries.
- A struct representing a range of ICAO hex IDs allocated to a specific country.
Functions
- Parses a CSV string and return a
Vec<Range>
.