- README
- Update Record
- token
- customer
- device
- fence
- push
- video
- alarm
- audio
- gallery
- fleet
- gps
- Protocol AnalysisPOST
deviceTripsByDeviceId
Singapore
Singapore
POST
/v2/openapi/device/gpsTrip
Request
Header Params
Authorization
string
required
Body Params application/json
deviceId
string | null
required
start
string | null
required
end
string | null
required
type
string | null
optional
Can be used multiple times, separated can be empty, default all if not passed
Example
{
"deviceId": "string",
"start": "string",
"end": "string",
"type": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/gpsTrip' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"start": "string",
"end": "string",
"type": "string"
}'
Responses
🟢200Success
application/json
Body
code
integer | null
optional
data
object (ApiDeviceGpsTripVO)
optional
totalMileage
number | null
optional
totalTime
integer | null
optional
avgSpeed
number | null
optional
maxSpeed
number | null
optional
deviceData
array[object (ApiDeviceTripVO) {13}] | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": {
"totalMileage": 0,
"totalTime": 0,
"avgSpeed": 0,
"maxSpeed": 0,
"deviceData": [
{
"tripId": "",
"deviceId": "",
"startTime": "",
"startLat": 0,
"startLon": 0,
"pointType": "",
"endTime": "",
"endLat": 0,
"endLon": 0,
"totalTime": 0,
"totalMileage": 0,
"avgSpeed": 0,
"maxSpeed": 0
}
]
},
"msg": ""
}
Modified at 2024-11-27 03:17:54