Request
Add parameter in header Authorization
Example:Authorization: ********************
Body Params application/json
{
"deviceId": "string",
"start": "string",
"end": "string",
"type": "string"
}
Request Code Samples
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/gpsTrip' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"start": "string",
"end": "string",
"type": "string"
}'
Responses
application/json {
"code": 0,
"data": {
"totalMileage": 0.0,
"totalTime": 0,
"avgSpeed": 0.0,
"maxSpeed": 0.0,
"deviceData": [
{
"tripId": "",
"deviceId": "",
"startTime": "",
"startLat": 0.0,
"startLon": 0.0,
"pointType": "",
"endTime": "",
"endLat": 0.0,
"endLon": 0.0,
"totalTime": 0,
"totalMileage": 0.0,
"avgSpeed": 0.0,
"maxSpeed": 0.0
}
]
},
"msg": ""
}
Modified at 2025-11-06 09:29:50