Skip to main content

everymap_providers_mapbox/domain/
geo.rs

1use serde::{Deserialize, Serialize};
2
3/// MapBox latitude/longitude coordinate.
4#[derive(Debug, Clone, Default, Serialize, Deserialize)]
5pub struct MapBoxLatLng {
6    pub lat: f64,
7    pub lng: f64,
8}
9
10/// MapBox bounding box: [west, south, east, north].
11#[derive(Debug, Clone, Default, Serialize, Deserialize)]
12pub struct MapBoxBounds {
13    pub west: f64,
14    pub south: f64,
15    pub east: f64,
16    pub north: f64,
17}