eaip 0.5.0

Fetch, parse and handle data from electronic aernautical information packages (eAIPs).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use eaip::eaip::ais::GB;
use eaip::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    pretty_env_logger::init();
    let eaip = &*GB;
    let intersections = Intersections::from_current_eaip(eaip)
        .await
        .with_context(|| "Failed to get intersections")?;
    println!("{:#?}", intersections);

    Ok(())
}