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 | Type of event. |
deviceId | Unique identifier of the device. |
messageType | Type of message. |
lastKnownLon | Last known longitude of vehicle in degrees. |
id | Unique identifier for the message |
state | State of the vehicle location. |
cumulativeIdleTime | Total idle time in the trip in seconds. |
locality | Local region or area. |
overSpeedingDuration | Total duration of overspeeding in seconds. |
cumulativeRunningTime | Total engine running time in seconds. |
deviceSerial | Serial number of the device. |
groupName | Name of the assigned group. |
lastKnownTime | Last known time in milliseconds. |
hardBreakingCount | Number of hard braking events. |
vehicleName | Name of the Vehicle. |
deviceTypeId | Type ID of the device, 1-Datalogger |
city | City name. |
tripDistance | Distance covered during the trip in kilometers. |
fuelConsumption | Fuel consumed in the trip in liters. |
customerId | Unique Azuga ID of the customer. |
tripDuration | Trip duration in seconds . |
tripNumber | Represents a unique ID assigned to a specific trip, allowing the system to track and reference that particular journey or route. |
criticalSpeedEventCounts | Number of critical speeding events. |
address | Full address. |
averageSpeed | Average speed during the trip in kilometers per hour. |
overSpeedingCount | Number of overspeeding events. |
userId | Unique ID of the user. |
reverseCount | Number of times reverse gear was used. |
messageEventTypeId | ID of the message event type. |
zipCode | ZIP code. |
country | Country name. |
deviceAssociatedVIN | VIN associated with the device. |
groupId | Unique Identifier of the Group. |
tripIdleTime | Total idle time in trip in seconds. |
consumedAir | Air consumption metric. |
startWithReverse | Indicates if trip started in reverse. |
vendorTypeId | Vendor type identifier. |
criticalSpeedDuration | Duration of critical speed in seconds. |
locationTime | Time the location was recorded in milliseconds. |
odometer | Odometer reading in kilometers. |
offset | Time zone offset |
virtualTripEnd | Indicates if virtual trip ended. |
imei_meid | IMEI or MEID of the device. |
insideHOO | Indicates if inside hours of operation. |
lastKnownLat | Last known latitude of the vehicle in degrees. |
storedLocation | Indicates whether location is stored. |
protocolVersionIdChange | Indicates whether protocol version changed. |
hardAccelerationCount | Number of hard acceleration events. |
lastKnownAddress | Last known address. |
privacyModeEnable | Indicates if privacy mode is enabled. |
vehicleId | Unique vehicle ID. |
maxSpeed | Maximum speed recorded in kilometers per hour. |
userName | Name of the user. |
tripState | State of the trip. |
messageTypeId | Message type ID. |
location | Current location object of the vehicle |
latitude | Latitude co-ordinate value in degrees
Example: |
longitude | Longitude co-ordinate value in degrees
Example: |
Updated 10 days ago