1 unstable release
Uses old Rust 2015
0.2.0 | Mar 30, 2018 |
---|
#64 in #pass
15KB
277 lines
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
Links
- Repository: https://github.com/r2p2/open-notify-api
- Issue tracker: https://github.com/r2p2/open-notify-api/issues
- Data source: http://open-notify.org (CC BY 3.0), by Nathan Bergey
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