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

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more