Skip to content
GuidesBlogPlaygroundDashboard

Datasets

List all datasets
client.Datasets.List(ctx) (*DatasetList, error)
GET/api/v1/datasets
Create a new dataset (admin only)
client.Datasets.New(ctx, body) (*Dataset, error)
POST/api/v1/datasets
Get dataset by ID
client.Datasets.Get(ctx, id) (*Dataset, error)
GET/api/v1/datasets/{id}
Delete a dataset
client.Datasets.Delete(ctx, id) error
DELETE/api/v1/datasets/{id}
Query features in a dataset
client.Datasets.Features(ctx, id, query) (*FeatureCollection, error)
GET/api/v1/datasets/{id}/features
ModelsExpand Collapse
type Dataset struct{…}

Metadata for a custom dataset. Datasets contain user-uploaded geospatial features separate from the OSM data.

ID string

Dataset UUID

formatuuid
InsertedAt Time

Creation timestamp (UTC)

formatdate-time
Name string

Human-readable dataset name

Slug string

URL-friendly identifier

UpdatedAt Time

Last update timestamp (UTC)

formatdate-time
Attribution stringoptional

Required attribution text

Description stringoptional

Dataset description

License stringoptional

License identifier (e.g. CC-BY-4.0)

SourceURL stringoptional

URL of the original data source

formaturi
type DatasetList struct{…}

List of all available datasets.

Datasets []Dataset

Array of dataset metadata objects

ID string

Dataset UUID

formatuuid
InsertedAt Time

Creation timestamp (UTC)

formatdate-time
Name string

Human-readable dataset name

Slug string

URL-friendly identifier

UpdatedAt Time

Last update timestamp (UTC)

formatdate-time
Attribution stringoptional

Required attribution text

Description stringoptional

Dataset description

License stringoptional

License identifier (e.g. CC-BY-4.0)

SourceURL stringoptional

URL of the original data source

formaturi