---
title: "Plan Routes"
method: GET
path: "/trips/{trip_id}/plans/{plan_id}/routes"
tags: ["plan"]
---

# Plan Routes

`GET /trips/{trip_id}/plans/{plan_id}/routes`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/trips/{trip_id}/plans/{plan_id}/routes`
- Auth: none declared

Every plan day's legs in one mode, in entry order. A dated day covered
by a stay starts at the stay it sets out from and can end at the night's stay.

## Path parameters

- `trip_id` string, required
- `plan_id` string, uuid, required

## Query parameters

- `mode` 'drive' | 'walk' | 'bike' | 'transit'

## Response `200`

Successful Response

- PlanRoutesResponse
  - `days` PlanDayModeLegs[]
    - `day_id` string, required
    - `legs` PlanModeLeg[]
      - `from_item_id` string, required
      - `to_item_id` string, required
      - `mode` 'drive' | 'walk' | 'bike' | 'transit', required
      - `seconds` integer, required
      - `polyline` string, nullable
      - `meters` integer, nullable
      - `steps` union[]
        - union
          - WalkStep
            - `kind` 'walk'
            - `minutes` integer, required
            - `polyline` string, nullable
          - RideStep
            - `kind` 'ride'
            - `minutes` integer, required
            - `operator` string, nullable
            - `line` TransitLine
              - …
            - `headsign` string, nullable
            - `headsign_en` string, nullable
            - `board` TransitStop, required
              - …
            - `alight` TransitStop, required
              - …
            - `stops` integer, required
            - `polyline` string, nullable
    - `unanswered` PlanLegEnds[]
      - `from_item_id` string, required
      - `to_item_id` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-10** `75b6deb72c79`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/stardrift/apis/fastapi/changes/trips/:trip_id/plans/:plan_id/routes/get.md)

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) - [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/fastapi/revisions/be9ed1e6c38a?raw)
