---
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
  - `county` string
  - `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

---

[API](https://skmtc.net/humanbaselines/apis/human-crash-baselines-api.md) · [All operations](https://skmtc.net/humanbaselines/apis/human-crash-baselines-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanbaselines/human-crash-baselines-api/versions/58c371840f69/schema)
