## Query features in a dataset `client.Datasets.Features(ctx, id, query) (*FeatureCollection, error)` **get** `/api/v1/datasets/{id}/features` Query features in a dataset ### Parameters - `id string` - `query DatasetFeaturesParams` - `Cursor param.Field[string]` Cursor for pagination - `Limit param.Field[int64]` Maximum results ### Returns - `type FeatureCollection struct{…}` Bare GeoJSON FeatureCollection. Pagination metadata is returned in HTTP headers (X-Limit, X-Has-More, X-Next-Cursor, X-Next-Offset, Link). - `Features []GeoJsonFeature` - `Geometry GeoJsonGeometry` - `Coordinates GeoJsonGeometryCoordinatesUnion` GeoJSON coordinates array (nesting depth varies by geometry type) - `type GeoJsonGeometryCoordinatesArray []float64` - `type GeoJsonGeometryCoordinatesArray [][]float64` - `type GeoJsonGeometryCoordinatesArray [][][]float64` - `type GeoJsonGeometryCoordinatesArray [][][][]float64` - `Type GeoJsonGeometryType` - `const GeoJsonGeometryTypePoint GeoJsonGeometryType = "Point"` - `const GeoJsonGeometryTypeLineString GeoJsonGeometryType = "LineString"` - `const GeoJsonGeometryTypePolygon GeoJsonGeometryType = "Polygon"` - `const GeoJsonGeometryTypeMultiPoint GeoJsonGeometryType = "MultiPoint"` - `const GeoJsonGeometryTypeMultiLineString GeoJsonGeometryType = "MultiLineString"` - `const GeoJsonGeometryTypeMultiPolygon GeoJsonGeometryType = "MultiPolygon"` - `Properties map[string, unknown]` - `Type GeoJsonFeatureType` - `const GeoJsonFeatureTypeFeature GeoJsonFeatureType = "Feature"` - `ID string` Feature identifier (type/osm_id) - `OsmID int64` OpenStreetMap ID - `Type FeatureCollectionType` - `const FeatureCollectionTypeFeatureCollection FeatureCollectionType = "FeatureCollection"` ### Example ```go package main import ( "context" "fmt" "github.com/plazafyi/plaza-go" "github.com/plazafyi/plaza-go/option" ) func main() { client := githubcomplazafyiplazago.NewClient( option.WithAPIKey("My API Key"), ) featureCollection, err := client.Datasets.Features( context.TODO(), "id", githubcomplazafyiplazago.DatasetFeaturesParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", featureCollection.Features) } ```