## Get feature by type and ID `GeoJsonFeature elements().retrieve(ElementRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())` **get** `/api/v1/features/{type}/{id}` Get feature by type and ID ### Parameters - `ElementRetrieveParams params` - `String type` - `Optional id` ### Returns - `class GeoJsonFeature:` - `GeoJsonGeometry geometry` - `Coordinates coordinates` GeoJSON coordinates array (nesting depth varies by geometry type) - `List` - `List>` - `List>>` - `List>>>` - `Type type` - `POINT("Point")` - `LINE_STRING("LineString")` - `POLYGON("Polygon")` - `MULTI_POINT("MultiPoint")` - `MULTI_LINE_STRING("MultiLineString")` - `MULTI_POLYGON("MultiPolygon")` - `Properties properties` - `Type type` - `FEATURE("Feature")` - `Optional id` Feature identifier (type/osm_id) - `Optional osmId` OpenStreetMap ID ### Example ```java package com.plazafyi.example; import com.plazafyi.client.PlazaClient; import com.plazafyi.client.okhttp.PlazaOkHttpClient; import com.plazafyi.models.GeoJsonFeature; import com.plazafyi.models.elements.ElementRetrieveParams; public final class Main { private Main() {} public static void main(String[] args) { PlazaClient client = PlazaOkHttpClient.fromEnv(); ElementRetrieveParams params = ElementRetrieveParams.builder() .type("type") .id(0L) .build(); GeoJsonFeature geoJsonFeature = client.elements().retrieve(params); } } ```