Give us a bunch of GeoJSON polygons or points with some params, and we'll give you back clusters of them.
JSON object containing:
subject
: Required {GeoJSON FeatureCollection or URL} Points/polygons to cluster. If URL, point to a file that contains GeoJSON or zipped Shapefile of polygons or points. Coordinates must be specified in decimal degrees. Note that polygons will be converted to points (centroids) for the purpose of clustering.parcel_by
: Optional {Array of string (URL) | GeoJSON FeatureCollection} A FeatureCollection for which no clusters should intersect.max_num
: Required {integer} The maximum number ofsubject
elements per cluster. Integer between 1 and number of features ofsubject
.max_dist_m
: Required {integer} The maximum distance in metres between any twosubject
elements in a cluster. (>= 0). If 0, every element will be a cluster. If greater than max distance between any pair ofsubject
elements, will create a single cluster.return_type
: Optional Defaults to 'both' {string: 'hull' | 'subject' | 'both' } Ifhull
, return convex hull for each cluster. Ifsubject
, returnsubject
elements with additional propertycluster_id
. Ifboth
, include bothhull
andsubject
return types.
- Maximum size of
subject
is ~XX MB or contains maximum of ~XX features. Currently being determined. - Timeout of 60 seconds
Depends on return_type
. JSON object of GeoJSON FeatureCollection(s).
An example JSON input can be found here