Crate open_notify_api [] [src]

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);
    }
}

Modules

error

Structs

Astros

Structure containing astronouts in space.

IssNow

Structure containing the location of the ISS.

IssPassTime
IssPassTimes

Structure containing the location of the ISS.

Person

People are contained in a separate type Person to add the information in which craft they are in.

Functions

astros

Fetch astronouts currently in space.

iss_now

Fetch current ISS position.

iss_pass_times

Request ISS pass times over a specified location