#
GPS Proxy
In
This documentation helps partners to get gps data from Zarv's platform.
Disclaimer: This api works only with some gps partners/providers, get in contact for details or apikeys.
#
How to authenticate?
All requests are authenticated using the custom header x-api-key
following your ApiKey sent by email.
#
GET last position
$ curl https://api.zarv.com/v1/gps-proxy/{plate}/last-position \ -H 'x-api-key: YOUR-API-KEY' \ -H 'content-type: application/json'
#
Request Parameters
- The separator character '-' is required.
#
Response fields
#
Response example
{ "plate": "abc-1234", "position": { "latitude": "-19.7828333", "longitude": "-43.90865", "direction": "23", "time": "2024-04-07T15:08:37.000Z", "speed": "25", "voltage": "12.82", "batteryPercent": "100", "ignition": 1, "signal": "66", "satellite": "5", "odometer": "83379.1" } }
#
GET positions
$ curl https://api.zarv.com/v1/gps-proxy/{plate}/positions?initialDate={initialDate}&finalDate={finalDate}&page={page}&size={size} \ -H 'x-api-key: YOUR-API-KEY' \ -H 'content-type: application/json'
#
Request Parameters
#
Request Query Parameters
Important: the initial and final date must be in the same month/year
#
Response fields
#
Response example
{ "plate": "abc-1234", "currentPage": 0, "itemsPerPage": 1, "totalPage": 3956, "totalItems": 3956, "hasNext": true, "positions": [ { "latitude": "-19.7828333", "longitude": "-43.90865", "direction": "23", "time": "2024-04-07T15:08:37.000Z", "speed": "25", "voltage": "12.82", "batteryPercent": "100", "ignition": 1, "signal": "66", "satellite": "5", "odometer": "83379.1" } ] }