---
title: "Get Eclipse Drive"
method: GET
path: "/eclipse/drive"
tags: ["eclipse"]
---

# Get Eclipse Drive

`GET /eclipse/drive`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/eclipse/drive`
- Auth: none declared

Car route from a base to a map spot: duration, distance, encoded polyline.

404s with a typed error when there is no drivable route (e.g. the spot is on
water or otherwise unreachable by car).

## Query parameters

- `from_lat` number, required: Origin latitude, decimal degrees
- `from_lon` number, required: Origin longitude, EAST-positive
- `to_lat` number, required: Destination latitude, decimal degrees
- `to_lon` number, required: Destination longitude, EAST-positive

## Response `200`

Successful Response

- DriveResponse: A driving route from the user's base to a spot on the map ("getting there from your base"), thin wrapper over the shared Google Routes client.
  - `duration_seconds` integer, required
  - `distance_km` number, required
  - `polyline` string, required: Google encoded polyline of the route

## Other responses

- `422`: Validation Error

---

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