openmeteo-rs 1.0.0

Rust client for the Open-Meteo weather API.
Documentation
use openmeteo_rs::{Client, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let client = Client::new();
    let locations = client
        .geocode("Zurich")
        .count(3)
        .language("en")
        .send()
        .await?;

    for location in locations {
        println!(
            "{} ({:?}) lat={} lon={} timezone={:?}",
            location.name,
            location.country_code,
            location.latitude,
            location.longitude,
            location.timezone
        );
    }

    Ok(())
}