---
title: "Location Trip Endpoint"
method: POST
path: "/trips/{trip_id}/location"
tags: ["trips"]
---

# Location Trip Endpoint

`POST /trips/{trip_id}/location`

## Request

- Base URL: `https://api.noma.co.ke` (the document declares no server; this is the origin it was published from)
- URL: `https://api.noma.co.ke/trips/{trip_id}/location`
- Auth: HTTP bearer

## Path parameters

- `trip_id` integer, required

## Request body

- TripLocationRequest
  - `trip_id` integer, nullable
  - `latitude` number, required
  - `longitude` number, required
  - `accuracy_m` number, nullable
  - `speed_mps` number, nullable
  - `heading_deg` number, nullable
  - `seq` integer, nullable
  - `recorded_at` string, date-time, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation failed.

---

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