---
title: "This endpoint search path between starting and ending track locations"
method: POST
path: "/infra/{infra_id}/pathfinding"
tags: ["infra", "pathfinding"]
---

# This endpoint search path between starting and ending track locations

`POST /infra/{infra_id}/pathfinding`

## Path parameters

- `infra_id` integer, required

## Query parameters

- `number` integer

## Request body

- InfraPathfindingInput
  - `ending` PathfindingTrackLocationInput, required
    - `position` number, double, required
    - `track` string, required
  - `starting` PathfindingTrackLocationInput, required
    - `position` number, double, required
    - `track` string, required

## Response `200`

A list of shortest paths between starting and ending track locations

- PathfindingOutput[]
  - `detectors` Identifier[], required
  - `switches_directions` object, required
  - `track_ranges` DirectionalTrackRange[], required
    - `begin` number, double, required
    - `direction` 'START_TO_STOP' | 'STOP_TO_START', required
    - `end` number, double, required
    - `track` string, required

---

[API](https://skmtc.net/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.net/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/versions/1840dbbd64ac/schema)
