aircraft_icao_country

Crates.ioaircraft_icao_country
lib.rsaircraft_icao_country
version1.0.4
sourcesrc
created_at2023-04-20 05:58:02.947603
updated_at2023-11-27 00:26:03.103848
descriptionLibrary of aircraft ICAO codes and their country of origin.
homepage
repositoryhttps://github.com/wiseman/aircraft_icao_country
max_upload_size
id844122
size786,325
John Wiseman (wiseman)

documentation

README

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

Commit count: 13

cargo fmt