Trip End
The TRIP_END_MESSAGE event is used to notify when a vehicle's trip ends. It marks the point when the ignition is turned off.
Event Type:TRIP_END_MESSAGE
Trigger Condition
Subscription to the TRIP_END_MESSAGE event is mandatory.
This event is triggered immediately when the vehicle's ignition is turned off.
Example Payload
{
"inputBit7": 0,
"partialUpdate": false,
"inputBit4": 0,
"voiceCallActive": 0,
"inputBit3": 0,
"inputBit6": 0,
"inputBit5": 0,
"type": "TRIP_END_MESSAGE",
"deviceId": "175f500a-ee66-11ec-9345-71e49d33ed35",
"networkService": 0,
"commStateConnected": 0,
"messageType": "TRIP_END_MESSAGE",
"messageIndex": "23182120",
"dimentionFix": 0,
"lastKnownLon": -76.2842649,
"inputBit0": 0,
"inputBit2": 0,
"id": "1c001a31-8d01-4e82-851d-5c01c7484335",
"state": "VA",
"inputBit1": 0,
"cumulativeIdleTime": 196,
"commStatusAvaliable": 0,
"locality": "Hampton",
"overSpeedingDuration": 0,
"eventIndex": 0,
"assetNo": "",
"cumulativeRunningTime": 435,
"fixStatusCorrected": 0,
"deviceSerial": "2209602947",
"groupName": "246 - Richmond",
"lastKnownTime": 1663947444000,
"hardBreakingCount": 0,
"jmsType": "",
"vehicleName": "211721",
"deviceTypeId": 1,
"city": "Hampton",
"latitude": 37.0800743,
"tripDistance": 161.9,
"fuelConsumption": 5.718,
"unitStatus": 0,
"invalidFix": 0,
"dataService": 0,
"noOfAccums": 0,
"customerId": 2748,
"tripDuration": 7191,
"tripNumber": 440,
"criticalSpeedEventCounts": 0,
"spare": 0,
"address": "Beach Rd, Hampton, VA, 23664, USA",
"roaming": 0,
"stateId": 0,
"averageSpeed": 89,
"overSpeedingCount": 0,
"userId": "8a9388a9-7b52-eb14-017b-c0ce39833eb0",
"reverseCount": 0,
"eventCode": 0,
"batteryPercentage": 0,
"currentState": 0,
"messageEventTypeId": 0,
"zipCode": "23664",
"country": "USA",
"deviceAssociatedVIN": "1GC0WLE72NF301637",
"groupId": "f93b0060-003c-11e6-b6f7-25bdd57524e3",
"tripIdleTime": 674,
"consumedAir": 241523,
"startWithReverse": false,
"vendorTypeId": 1,
"fixStatuslastKnown": 0,
"fixStatusHistoric": 0,
"longitude": -76.2842649,
"criticalSpeedDuration": 0,
"locationTime": 1663947444000,
"odometer": 13324,
"offset": -240,
"virtualTripEnd": false,
"imei_meid": "352602118100269",
"insideHOO": true,
"lastKnownLat": 37.0800743,
"fixQuality": 0,
"unitStatusBit0": 0,
"unitStatusBit2": 0,
"unitStatusBit1": 0,
"unitStatusBit3": 0,
"storedLocation": false,
"protocolVersionIdChange": false,
"hardAccelerationCount": 0,
"fixStatusPredict": 0,
"network3G": 0,
"lastKnownAddress": "Beach Rd, Hampton, VA, 23664, USA",
"privacyModeEnable": false,
"fixStatus": 0,
"vehicleId": "175f5009-ee66-11ec-9345-ef904033436a",
"lastKnownFixQuality": 0,
"maxSpeed": 126,
"userName": "Henry BRANDON",
"tripState": "IGNITION_OFF",
"messageTypeId": 9,
"location": {
"latitude": 37.0800743,
"longitude": -76.2842649
},
"commonState": 0
}
Reference
Field | Description |
---|---|
| Type of event. |
| Unique identifier of the device. |
| Type of message. |
| Last known longitude of vehicle in degrees. |
| Unique identifier for the message |
| State of the vehicle location. |
| Total idle time in the trip in seconds. |
| Local region or area. |
| Total duration of overspeeding in seconds. |
| Total engine running time in seconds. |
| Serial number of the device. |
| Name of the assigned group. |
| Last known time in milliseconds. |
| Number of hard braking events. |
| Name of the Vehicle. |
| Type ID of the device, 1-Datalogger |
| City name. |
| Distance covered during the trip in kilometers. |
| Fuel consumed in the trip in liters. |
| Unique Azuga ID of the customer. |
| Trip duration in seconds . |
| Represents a unique ID assigned to a specific trip, allowing the system to track and reference that particular journey or route. |
| Number of critical speeding events. |
| Full address. |
| Average speed during the trip in kilometers per hour. |
| Number of overspeeding events. |
| Unique ID of the user. |
| Number of times reverse gear was used. |
| ID of the message event type. |
| ZIP code. |
| Country name. |
| VIN associated with the device. |
| Unique Identifier of the Group. |
| Total idle time in trip in seconds. |
| Air consumption metric. |
| Indicates if trip started in reverse. |
| Vendor type identifier. |
| Duration of critical speed in seconds. |
| Time the location was recorded in milliseconds. |
| Odometer reading in kilometers. |
| Time zone offset |
| Indicates if virtual trip ended. |
| IMEI or MEID of the device. |
| Indicates if inside hours of operation. |
| Last known latitude of the vehicle in degrees. |
| Indicates whether location is stored. |
| Indicates whether protocol version changed. |
| Number of hard acceleration events. |
| Last known address. |
| Indicates if privacy mode is enabled. |
| Unique vehicle ID. |
| Maximum speed recorded in kilometers per hour. |
| Name of the user. |
| State of the trip. |
| Message type ID. |
| Current location object of the vehicle |
| Latitude co-ordinate value in degrees |
| Longitude co-ordinate value in degrees |
Updated 2 days ago