---
title: "POST /v1/matrix/location"
method: POST
path: "/v1/matrix/location"
tags: ["Travel Matrix Api"]
---

# POST /v1/matrix/location

`POST /v1/matrix/location`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/matrix/location`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

The Travel Matrix Flexible API provides ETAs and distances using truck-specific routes, departure times, traffic, and route preferences by setting the option parameter to flexible. It supports both HTTPS GET and POST, with POST allowing larger origin-destination sets.

## Query parameters

- `option` 'flexible', required

## Headers

- `X-Request-Id` string

## Request body

- object

## Response `200`

OK

- FlexibleMatrixResponseModel
  - `status` string
  - `warning` string[]
  - `rows` Row[]
    - `elements` Element[]
      - `duration` Duration
        - `value` integer
      - `distance` Distance
        - `value` integer

## Other responses

- `400`: Invalid request
- `401`: Unauthorized: Invalid token
- `403`: Forbidden
- `429`: Too many requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/precisely/apis/routing-apis.md) · [All operations](https://skmtc.dev/precisely/apis/routing-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/routing-apis/revisions/b0c264d3c699?raw)
