[−][src]Struct geocoding::openstreetmap::OpenstreetmapResponse
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
impl<T: Debug> Debug for OpenstreetmapResponse<T> where
T: Float,
[src]
T: Float,
impl<'de, T> Deserialize<'de> for OpenstreetmapResponse<T> where
T: Float,
T: Deserialize<'de>,
[src]
T: Float,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Serialize for OpenstreetmapResponse<T> where
T: Float,
T: Serialize,
[src]
T: Float,
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for OpenstreetmapResponse<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for OpenstreetmapResponse<T> where
T: Send,
T: Send,
impl<T> Sync for OpenstreetmapResponse<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OpenstreetmapResponse<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for OpenstreetmapResponse<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,