#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

#4 in #nasa

Download history 8/week @ 2024-02-26 49/week @ 2024-03-04 53/week @ 2024-04-01

55 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–21MB
~301K SLoC