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
Parameter | Description |
---|---|
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,Trips2Region A,Region A,13Region A,External,24External,Region A,35External,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
Code | Reason |
---|---|
200 | OK |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |