Struct geocoding::openstreetmap::OpenstreetmapResponse
source · [−]pub struct OpenstreetmapResponse<T> where
T: Float + Debug, {
pub type: String,
pub licence: String,
pub features: Vec<OpenstreetmapResult<T>>,
}
Expand description
The top-level full GeoJSON response returned by a forward-geocoding request
See the documentation for more details
{
"type": "FeatureCollection",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"features": [
{
"type": "Feature",
"properties": {
"place_id": 263681481,
"osm_type": "way",
"osm_id": 355421084,
"display_name": "68, Carrer de Calatrava, les Tres Torres, Sarrià - Sant Gervasi, Barcelona, BCN, Catalonia, 08017, Spain",
"place_rank": 30,
"category": "building",
"type": "apartments",
"importance": 0.7409999999999999,
"address": {
"house_number": "68",
"road": "Carrer de Calatrava",
"suburb": "les Tres Torres",
"city_district": "Sarrià - Sant Gervasi",
"city": "Barcelona",
"county": "BCN",
"state": "Catalonia",
"postcode": "08017",
"country": "Spain",
"country_code": "es"
}
},
"bbox": [
2.1284918,
41.401227,
2.128952,
41.4015815
],
"geometry": {
"type": "Point",
"coordinates": [
2.12872241167437,
41.40140675
]
}
}
]
}
Fields
type: String
licence: String
features: Vec<OpenstreetmapResult<T>>
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for OpenstreetmapResponse<T> where
T: Float + Debug,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for OpenstreetmapResponse<T> where
T: Float + Debug,
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for OpenstreetmapResponse<T> where
T: RefUnwindSafe,
impl<T> Send for OpenstreetmapResponse<T> where
T: Send,
impl<T> Sync for OpenstreetmapResponse<T> where
T: Sync,
impl<T> Unpin for OpenstreetmapResponse<T> where
T: Unpin,
impl<T> UnwindSafe for OpenstreetmapResponse<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more