---
title: "Read the currently loaded route"
method: GET
path: "/v1/vehicles/{vehicleId}/loaded-route"
tags: ["Route Management"]
---

# Read the currently loaded route

`GET /v1/vehicles/{vehicleId}/loaded-route`

## Request

- Base URL: `https://api.polymathrobotics.dev`
- URL: `https://api.polymathrobotics.dev/v1/vehicles/{vehicleId}/loaded-route`
- Auth: HTTP bearer

## Path parameters

- `vehicleId` string, required

## Response `200`

Successful Response

- ReadRouteGraphResponse
  - `status` 'success': JSend status.
  - `message` string, required: Human-readable message.
  - `route` RouteGraph, required
    - `name` string, required: Name of the route.
    - `nodes` RouteNode[], required: Nodes that make up the route.
      - `id` integer, required: 16-bit unique identifier of the node within this route graph, which can also be used to send a navigation goal later.
      - `coordinate_system` 0 | 1: An enumeration.
      - `wgs84_position` GeoPoint: Base for request bodies: unknown fields are rejected instead of silently dropped.
        - `lat` number, required: Latitude
        - `lon` number, required: Longitude
        - `altitude` number: Altitude (meters)
        - `yaw` number: Yaw (radians). Robot body frame: x forward, y left, z up; positive yaw is counter-clockwise.
      - `map_position` MapPoint: Base for request bodies: unknown fields are rejected instead of silently dropped.
        - `x` number, required: X position in the map frame (meters).
        - `y` number, required: Y position in the map frame (meters).
      - `name` string: Optional human-readable name for the node, which can be used to send a navigation goal later.
    - `edges` RouteEdge[], required: Edges connecting the nodes.
      - `from_node_id` integer, required: ID of the node this edge starts from.
      - `to_node_id` integer, required: ID of the node this edge ends at.
      - `id` integer, required: 16-bit unique identifier of this edge.
      - `cost` integer: Cost/penalty of traversing this edge.

## Other responses

- `404`: No route is currently loaded
- `500`: Internal server error

## Changes

- **2026-09-09** `7bb062ddb622`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/polymathrobotics/apis/polymath-api/changes/v1/vehicles/:vehicleId/loaded-route/get.md)

---

[API](https://skmtc.dev/polymathrobotics/apis/polymath-api.md) - [All operations](https://skmtc.dev/polymathrobotics/apis/polymath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polymathrobotics/apis/polymath-api/revisions/3b5ff2f21338?raw)
