3 releases
0.2.2 | Jul 8, 2022 |
---|---|
0.2.1 | Jun 21, 2022 |
0.2.0 | Jun 21, 2022 |
#2296 in Parser implementations
75KB
853 lines
Rust Connector for the Meteomatics API
rust-connector-api
Meteomatics provides a REST-style API to retrieve historic, current, and forecast data globally. This includes model data and observational data in time series and areal formats. Areal formats are also offered through a WMS/WFS-compatible interface. Geographic and time series data can be combined in certain file formats, such as NetCDF.
Simply add the meteomatics crate to the dependencies of your project.
For a start we recommend to inspect and play with the examples.
- Change to the meteomatics directory using
cd meteomatics
- Open and inspect the documentation for the connector
cargo doc --lib --no-deps --open
- Open and inspect the documentation for the examples
cargo doc --examples --no-deps --open
cargo run --example 00_timeseries
cargo run --example 01_pivoted_grid
cargo run --example 02_unpivoted_grid
For developers
- create a file called
.env
inside the repository root and add:
METEOMATICS_USER=your_username
METEOMATICS_PW=your_password
- Change to the meteomatics directory using
cd meteomatics
- Run the various tests using
cargo test
Notes
- Tested on
rustc 1.60.0
andrustc 1.61.0
.
Dependencies
~17–30MB
~533K SLoC