---
title: "Export Trip Maps Kml"
method: POST
path: "/trips/{trip_id}/maps-kml"
tags: ["trip-export"]
---

# Export Trip Maps Kml

`POST /trips/{trip_id}/maps-kml`

Build the whole trip as a KML file for import into Google My Maps.

Google has no write API for a user's saved list/My Map, so the paid
"Export to Google Maps" feature returns a .kml the client downloads and the
user imports. Gating and the KML build happen in this one call, so a free
user can't bypass the paywall — there's nothing client-side to forge.

## Path parameters

- `trip_id` string, required

## Response `200`

Successful Response

- MapsKmlExportResponse
  - `filename` string, required
  - `kml` string, required

## 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)
