## Query features by bounding box or H3 cell `FeatureCollection elements().query(ElementQueryParamsparams = ElementQueryParams.none(), RequestOptionsrequestOptions = RequestOptions.none())` **get** `/api/v1/features` Query features by bounding box or H3 cell ### Parameters - `ElementQueryParams params` - `Optional bbox` Bounding box: south,west,north,east. At least one of bbox or h3 is required. - `Optional cursor` Cursor for pagination - `Optional h3` H3 cell index. At least one of bbox or h3 is required. - `Optional limit` Maximum results (default 100, max 10000) - `Optional type` Element types (comma-separated: node,way,relation) ### Returns - `class FeatureCollection:` Bare GeoJSON FeatureCollection. Pagination metadata is returned in HTTP headers (X-Limit, X-Has-More, X-Next-Cursor, X-Next-Offset, Link). - `List features` - `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 - `Type type` - `FEATURE_COLLECTION("FeatureCollection")` ### Example ```java package com.plazafyi.example; import com.plazafyi.client.PlazaClient; import com.plazafyi.client.okhttp.PlazaOkHttpClient; import com.plazafyi.models.FeatureCollection; import com.plazafyi.models.elements.ElementQueryParams; public final class Main { private Main() {} public static void main(String[] args) { PlazaClient client = PlazaOkHttpClient.fromEnv(); FeatureCollection featureCollection = client.elements().query(); } } ```