/cluster

cluster data array.

GET geolytix.xyz/api/layer/cluster

Request an array of cluster locations for the given view port.

Query Parameters

NameTypeDescription

locale

string

The locale key.

layer

string

The layer key.

table

string

The PostGIS table with cluster locations.

kmeans

string

The factor for the PostGIS kmeans algorithm.

dbscan

string

The factor for the PostGIS dbscan algorithm.

west

string

The western bounds of the view port.

south

string

The southern bounds of the view port.

east

string

The eastern bounds of the view port.

north

string

The northern bounds of the view port.

cat

string

The cat field to be used for cluster aggregation.

size

string

The size field to be used for cluster aggregation.

theme

string

The theme type (categorized, graduated, competition).

filter

string

Stringified filter object to be applied to table query.

token

string

Required for private endpoints.

[
  {
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [
        -4.94003973494868,
        50.3960153464407
      ]
    },
    "properties": {
      "count": 112,
      "size": 112,
      "cat": null
    }
  },
  {...}
  }

Last updated