everymap-providers-mapbox 0.2.1

MapBox provider for EveryMap — geocoding, routing, static maps, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// MapBox latitude/longitude coordinate.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct MapBoxLatLng {
    pub lat: f64,
    pub lng: f64,
}

/// MapBox bounding box: [west, south, east, north].
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct MapBoxBounds {
    pub west: f64,
    pub south: f64,
    pub east: f64,
    pub north: f64,
}