Matrix Service

Computes duration of the fastest route between all pairs of supplied coordinates. Returns the durations or distances or both between the coordinate pairs. Note that the distances are not the shortest distance between two coordinates, but rather the distances of the fastest routes.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required

Mode of transportation. driving and walking are supported.

Allowed:
string
required

String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) or polyline6({polyline6}).
You can send up to a maximum of 25 coordinate pairs per request (except Nearest API where coordinates only supports a single {longitude},{latitude} entry)

Query Params
string

Limits the search to segments with given bearing in degrees towards true north in clockwise direction. List of positive integer pairs separated by semi-colon and bearings array should be equal to length of coordinate array. Accepted Value :- {bearing};{bearing}[;{bearing} ...] Each {bearing} follows the following format: {value},{range} integer 0 .. 360,integer 0 .. 180

string

Limits the search to given radius in meters Radiuses array length should be same as coordinates array, each value separated by semi-colon. Accepted Value - {radius};{radius}[;{radius} ...] Each {radius} has following format: double >= 0 or unlimited (default)

string

Hint from previous request to derive position in street network. Accepted value: {hint};{hint}[;{hint} ...]

integer

Use location with given index as source. Accepted value: {index};{index}[;{index} ...] or all (default). Each {index} has the following format: 0 <= integer < #locations

integer

Use location with given index as destination. Accepted value: {index};{index}[;{index} ...] or all (default) Each {index} has the following format: 0 <= integer < #locations

string
Defaults to false

Returns additional metadata for each coordinate along the route geometry. Accepted value: true, false (default), nodes, distance, duration, datasources, weight, speed

number

If no route found between a source/destination pair, calculate the as-the-crow-flies distance, then use this speed to estimate duration. Accepted value: double > 0

string
Defaults to input

When using a fallback_speed, use the user-supplied coordinate (input), or the snapped location (snapped) for calculating distances. Accepted value: input (default), or snapped.

Responses

Language
Credentials
Query
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json