get_trip_detector
To obtain trip detection settings, use the unit/get_trip_detector command.
svc=unit/get_trip_detector¶ms={"itemId":<long>}
Parameters
The request must contain the itemId parameter, specifying the unit ID.
Response
If the request is completed successfully, the response contains trip detection settings.
{
"type":<uint>, /* Type of movement detection (see below) */
"gpsCorrection":<uint>, /* Allow GPS correction: 0 - no, 1 - yes */
"minSat":<uint>, /* Minimum number of satellites */
"minMovingSpeed":<uint>, /* Minimum moving speed, km/h */
"minStayTime":<uint>, /* Minimum parking time, seconds */
"maxMessagesDistance":<uint>, /* Maximum distance between messages, meters */
"minTripTime":<uint>, /* Minimum trip time, seconds */
"minTripDistance":<uint> /* Minimum trip distance, meters */
}
Types of movement detection:
Value | Description |
---|---|
1 | GPS speed |
2 | GPS coordinates |
3 | Engine ignition sensor |
4 | Mileage sensor |
5 | Relative odometer |
If the request fails, the response contains error code 7, indicating that the user doesn’t have the required access right to the unit (ADF_ACL_ITEM_VIEW_PROPERTIES).