Skip to main content
POST
The least-cost route between two points on a cost surface, with k alternatives (TP14)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
cost_key
string
required

The cost raster (spatial.cost's raster.key, or any quantity raster of cost per metre)

from
number[]
required

[x, y] in the cost raster's frame

to
number[]
required

[x, y] in the cost raster's frame

exclusion_keys
string[]

Stored vector documents of polygons no route enters, in the cost raster's frame (at most 16)

spec
object

RouteSpec: neighbours (8 or 16, default 16), guard_crossings (default true), search (astar default, or dijkstra), alternatives {k, penalty, buffer_cells, max_stretch} (spatial.cost.route only)

Response

See the description

The response is of type object.