← API Index
/api/driver/trck1
Upload driver GPS tracking data, one position fix per line. Each line is lat,lng,accuracy,timestamp with an optional fifth mileage (km) value. The tour is taken from tourid/tid or, if absent, from the current session.
Parameters
| Name |
Description |
Type |
| data |
tracking payload: newline separated lines of lat,lng,accuracy,timestamp[,km] |
string |
| tourid |
tour id the tracking belongs to; optional |
int |
| tid |
alternative name for tourid |
int |
| dupcheck |
uuid guarding against duplicate submissions; a repeated uuid returns result trckduplicate |
string |
| oo-rf |
optionally define the response-format for this call. One of: compact (default) | compacts | full | fulls | json | md | html | js | openapi | yaml |
String |
| oo-auth |
optionally force the API to check against the role (instead of silently not returning data). For guests or public access, the default is -1. 0 (regular customer) and above define the role for which the current session is expected to be authorized. |
int |
Error Responses
| HTTP Status |
Error Code |
Description |
| 403 |
access_error |
Not authenticated as driver |
| 400 |
parameter_error |
Missing data payload |
Response Types
OpenAPI
See trck1.yaml
Referenced in skills