mosmix 0.1.0

Contains a database of all mosmix weather-stations.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Coordinate containing latitude, longitude, and optional altitude.
#[derive(Debug, Clone, PartialEq)]
pub struct Coordinate {
    pub lat: f32,
    pub lon: f32,
    pub alt: Option<i32>,
}

/// Station containing identifier, name, and location.
#[derive(Debug, Clone, PartialEq)]
pub struct Station {
    pub id: String,
    pub name: String,
    pub location: Coordinate,
}