Analysis Trips Result As CSV File

Request

Get full trips result as csv file by sending a GET request.

Format

GET
URL request example
https://api.tomtom.com/origindestination/1/analysis/flowmatrix/{id}/result/trips/csv?key={apiKey}&dateRange={dateRange}&timeRange={timeRange}

Example

GET
URL request example
https://api.tomtom.com/origindestination/1/analysis/flowmatrix/123/result/trips/csv?key=test-api-key&dateRange=0&timeRange=0

Parameters

ParameterDescription

apiKey

Authorization key for access to the API.

dateRange

Index of date range.

timeRange

Index of time range.

Response

This response will return csv file containing all trips for all possible combinations of single origin and destination.

Response structure

Response contains csv which should be self describing. First row contains labels and next rows contain data. First two columns are reserved for region names and the third is reserved for trips value

Result example

1Origin,Destination,Trips
2Region A,Region A,1
3Region A,External,2
4External,Region A,3
5External,External,4

Errors

If there is an error in the supplied parameters or any other internal problem an error response is generated in the requested format.

HTTP Response Codes

CodeReason

200

OK

400

Bad request

401

Unauthorized

403

Forbidden

404

Not Found