## Query features in a dataset `client.datasets.features(stringid, DatasetFeaturesParamsquery?, RequestOptionsoptions?): FeatureCollection` **get** `/api/v1/datasets/{id}/features` Query features in a dataset ### Parameters - `id: string` - `query: DatasetFeaturesParams` - `cursor?: string` Cursor for pagination - `limit?: number` Maximum results ### Returns - `FeatureCollection` Bare GeoJSON FeatureCollection. Pagination metadata is returned in HTTP headers (X-Limit, X-Has-More, X-Next-Cursor, X-Next-Offset, Link). - `features: Array` - `geometry: GeoJsonGeometry` - `coordinates: Array | Array> | Array>> | Array>>>` GeoJSON coordinates array (nesting depth varies by geometry type) - `Array` - `Array>` - `Array>>` - `Array>>>` - `type: "Point" | "LineString" | "Polygon" | 3 more` - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` - `properties: Record` - `type: "Feature"` - `"Feature"` - `id?: string` Feature identifier (type/osm_id) - `osm_id?: number` OpenStreetMap ID - `type: "FeatureCollection"` - `"FeatureCollection"` ### Example ```typescript import Plaza from '@plazafyi/sdk'; const client = new Plaza({ apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted }); const featureCollection = await client.datasets.features('id'); console.log(featureCollection.features); ```