## Get feature by type and ID `elements.retrieve(id, **kwargs) -> GeoJsonFeature` **get** `/api/v1/features/{type}/{id}` Get feature by type and ID ### Parameters - `type: String` - `id: Integer` ### Returns - `class GeoJsonFeature` - `geometry: GeoJsonGeometry` - `coordinates: Array[Float] | Array[Array[Float]] | Array[Array[Array[Float]]] | Array[Array[Array[Array[Float]]]]` GeoJSON coordinates array (nesting depth varies by geometry type) - `Array[Float]` - `Array[Array[Float]]` - `Array[Array[Array[Float]]]` - `Array[Array[Array[Array[Float]]]]` - `type: :Point | :LineString | :Polygon | 3 more` - `:Point` - `:LineString` - `:Polygon` - `:MultiPoint` - `:MultiLineString` - `:MultiPolygon` - `properties: Hash[Symbol, untyped]` - `type: :Feature` - `:Feature` - `id: String` Feature identifier (type/osm_id) - `osm_id: Integer` OpenStreetMap ID ### Example ```ruby require "plaza" plaza = Plaza::Client.new( api_key: "My API Key", environment: "local" # defaults to "production" ) geo_json_feature = plaza.elements.retrieve(0, type: "type") puts(geo_json_feature) ```