Skip to main content
POST
Distance Matrix

Authorizations

Authorization
string
header
required

JWT Bearer token for authentication. Example: "Bearer YOUR_API_TOKEN_HERE"

Body

application/json

Coordinates with source and destination indices

Coordinates with source and destination indices

coordinates
object[]
required

List of geographic coordinates (at least one required)

destinations
integer[]

Zero-based indices into coordinates identifying destination points. If omitted, all coordinates are used as destinations.

Example:
sources
integer[]

Zero-based indices into coordinates identifying source points. If omitted, all coordinates are used as sources.

Example:

Response

OK

data
object

Response payload

error
string

Error message (only present when ok is false)

Example:

""

ok
boolean

Whether the request was successful

Example:

true