---
title: "V1 Compute Depot Route"
method: POST
path: "/v1/compute/depot-route"
tags: ["v1"]
---

# V1 Compute Depot Route

`POST /v1/compute/depot-route`

Full depot-to-depot trip rate (access + interstate + access legs).
Counties with DEPOT mode (travis, interstates).

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Request body

- V1DepotRequest
  - `region` string — Which served region to compute. Discover the set with /v1/regions.
  - `depot_a` DepotPin, required
    - `lat` number, required
    - `lon` number, required
  - `depot_b` DepotPin, required
    - `lat` number, required
    - `lon` number, required
  - `selections` DepotSelections — Filters for POST /v1/compute/depot-route (depot-to-depot trip).
    - `outcome` 'police_reported' | 'observed_any_injury' | 'airbag' | 'ego_airbag' | 'ka' | 'fatal'
    - `severity` integer
    - `ego_vehicle` union
      - VehicleClass[]
      - 'cars' | 'light_trucks' | 'heavy_trucks' | 'motorcycles' | 'buses' | 'other'
    - `unresolved_nfs` 'marginal' | 'none' | 'all'
    - `in_transport` 'in_transport' | 'include_all'
    - `weather` union
      - WeatherFilter[]
      - 'any' | 'dry' | 'rain' | 'fog' | 'winter_storm'
    - `light_condition` union
      - LightFilter[]
      - 'any' | 'daylight' | 'dawn_dusk' | 'dark'
    - `driver_impairment` 'any' | 'exclude_impaired' | 'impaired_only'
    - `under_reporting` 'none' | 'adjusted'
    - `ci_method` 'fay_feuer' | 'empirical_bayes'

## Response `200`

Successful Response

- DepotComputeResult — Three-leg depot-to-depot trip. Shape mirrors engine.compute_depot_route; left loose because it carries leg sub-objects + geometry for rendering.

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-26** `5897d963a448` — 1 warning, 1 info
  - removed the request property `county`
  - added the new optional request property `region`
- **2026-08-12** `f97928a07496` — 1 info
  - the `weather` request property default value changed from `dry, rain, fog` to `any`

[Change history](https://skmtc.dev/humanbaselines/apis/human-crash-baselines-api/changes/v1/compute/depot-route/post.md)

---

[API](https://skmtc.dev/humanbaselines/apis/human-crash-baselines-api.md) · [All operations](https://skmtc.dev/humanbaselines/apis/human-crash-baselines-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humanbaselines/human-crash-baselines-api/revisions/241d41b8922d/schema)
