[][src]Struct geocoding::openstreetmap::OpenstreetmapResponse

pub struct OpenstreetmapResponse<T> where
    T: Float
{ pub type: String, pub licence: String, pub features: Vec<OpenstreetmapResult<T>>, }

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: Stringlicence: Stringfeatures: Vec<OpenstreetmapResult<T>>

Trait Implementations

impl<T: Debug> Debug for OpenstreetmapResponse<T> where
    T: Float
[src]

impl<'de, T> Deserialize<'de> for OpenstreetmapResponse<T> where
    T: Float,
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for OpenstreetmapResponse<T> where
    T: Float,
    T: Serialize
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.