#dataset #reading #basic #ebird

ebd

Rust library for reading the eBird Basic Dataset (EBD)

1 unstable release

0.1.0 Dec 2, 2020

#94 in #dataset

MIT/Apache

8KB
146 lines

rust-ebd

Rust library for reading the eBird Basic Dataset (EBD).


lib.rs:

Rust library for reading the [eBird Basic Dataset (EBD)][ebd].

Examples

use std::io;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut ebd_reader = ebd::Reader::from_reader(io::stdin());

    while ebd_reader.advance()? {
        let record = ebd_reader.read_record()?;

        println!(
            "(lng: {}, lat: {})",
            record.longitude,
            record.latitude
        );
    }

    Ok(())
}

Dependencies

~1.4–2.2MB
~34K SLoC