#org #api #access #pass #times #iss #open-notify

open-notify-api

Crate to access data provided by http://open-notify.org/

1 unstable release

Uses old Rust 2015

0.2.0 Mar 30, 2018

#64 in #pass

GPL-3.0 license

15KB
277 lines

Build Status

open-notify-api

Rust library to access data provided by http://open-notify.org/

Supported apis

  • astro Shows who is in space right now
  • iss_now Shows ISS location right now
  • iss_pass_times Show ISS pass times over a specified location

Licensing

The code in this project is licensed under GPLv3 license.


lib.rs:

Ruby library to access the web api provided by open-notify.org.

Supported

  • Request list of people in space
  • Request position of the ISS

Open

  • Request ISS pass times given a location

Example

match open_notify_api::astros() {
    Ok(astros) => {
        println!("People in space {}", astros.people().len());
        for person in astros.people().iter() {
            println!(" - {}, {}", person.name(), person.craft());
        }
    },
    Err(error_msg) => {
        eprintln!("Ups: {:?}", error_msg);
    }
}

Dependencies

~15–24MB
~424K SLoC