Compute the shortest travel distance between two locations
GET/distance
Computes the shortest travel distance, in metres, between two coded locations over the pure-domain travel graph (ADR-0017): Dijkstra's algorithm honouring one-way aisles and active cross-aisles. The result is flagged estimated when any leg of the route used a zone's bay-pitch fallback instead of real aisle centreline geometry.
Same-zone requests route over the zone's travel graph. Cross-zone requests are honoured only when BOTH locations carry recorded position geometry: the answer is the straight-line (beeline) distance between the two positions, always flagged estimated because it is a lower bound, not a routed path. When either endpoint lacks geometry the request is refused (422, does not guess) — the travel graph is per-zone, so no honest routed cross-zone path exists yet.
This context reports map TOPOLOGY only: travel TIME, congestion, and route choice under load remain wes-work-planning's concern, never this one's.
Request
Responses
- 200
- 400
- 404
- 422
- 500
The shortest travel distance and route.
Malformed input: a body that is not valid JSON, a location code that is not seven [A-Z0-9] segments, a missing required identifier, a query parameter outside its documented enum, an invalid limit / cursor or an undeclared query parameter on a paged collection, or a missing / malformed Idempotency-Key on a POST.
The named site, zone, aisle, slot, location type or placement rule does not exist.
Semantically invalid: a non-positive capacity, an unknown enum value, or a PlacementRule violation.
An unexpected failure, e.g. the datastore is unavailable.