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

# Get Eclipse Drive

`GET /eclipse/drive`

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/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
