#nasa #aerospace #horizons #solarsystem

rhorizons

Access NASA JPL Horizons system. Get Solar System bodies, their positions and velocities.

5 releases (breaking)

0.5.0 Jul 18, 2023
0.4.0 Jul 9, 2023
0.3.0 Aug 25, 2022
0.2.0 Aug 21, 2022
0.1.0 Aug 20, 2022

#5 in #nasa

43 downloads per month

MIT license

34KB
598 lines

crates.io

Access NASA JPL Horizons system from Rust. This crate is written in asynchronous code, therefore you probably want to use it in conjunction with tokio.

Example

#[tokio::main]
async fn main() {
    println!("Major bodies in the Solar System.");

    for body in rhorizons::major_bodies().await {
        println!("{} ({})", body.name, body.id);
    }
}

You can check more examples in the source repository.

Dependencies

~7–19MB
~264K SLoC