Skip to content
GuidesPlaygroundDashboard

Query features in a dataset

$client->datasets->features(string id, ?string cursor, ?int limit): FeatureCollection
GET/api/v1/datasets/{id}/features

Query features in a dataset

ParametersExpand Collapse
id: string
cursor?:optional string

Cursor for pagination

limit?:optional int

Maximum results

ReturnsExpand Collapse
list<GeoJsonFeature> features
Type type

Query features in a dataset

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'local');

$featureCollection = $client->datasets->features(
  'id', cursor: 'cursor', limit: 0
);

var_dump($featureCollection);
Returns Examples