compute

Run a spatial analysis

Buffer, centroid, bbox, area, length, distance, intersect, union, difference, contains, intersects, nearest, simplify and convex hull.

When to use: Measure or transform GeoJSON, coordinates, query results, and result handles.

When not to use: Use a pipeline for several dependent operations in one request.

post/analyze

Request

  • Base URL: https://api.mapsource.io
  • URL: https://api.mapsource.io/analyze
  • Auth: HTTP bearer

Request body

operation'buffer' | 'centroid' | 'bbox' | 'area' | 'length' | 'distance' | 'intersect' | 'union' | 'difference' | 'contains' | 'intersects' | 'nearest' | 'simplify' | 'convex' required

The operation to run.

aobject required

GeoJSON, a [lon, lat] pair, a query or places result, or a result handle.

bobject

Second operand, in the same forms as a.

distancenumber

Buffer radius or simplify tolerance.

units'meters' | 'kilometers' | 'miles'

Units for distance.

Response

Run a spatial analysis

schemastring
operationstring
geometryunknown
valueunknown
bboxunknown

Changes

No recorded changes to this operation across all 1 revision of this API.