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

FieldDescription
type
String
Type of event.
Example: TRIP_END_MESSAGE
deviceId
String,UUID
Unique identifier of the device.
Example: 175f500a-ee66-11ec-9345-71e49d33ed35
messageType
String
Type of message.
Example: TRIP_END_MESSAGE
lastKnownLon
Double
Last known longitude of vehicle in degrees.
Example: -76.2842649
id
String,UUID
Unique identifier for the message
Example: 1c001a31-8d01-4e82-851d-5c01c7484335
state
String
State of the vehicle location.
Example: VA
cumulativeIdleTime
Integer
Total idle time in the trip in seconds.
Example: 196
locality
String
Local region or area.
Example: Hampton
overSpeedingDuration
Integer
Total duration of overspeeding in seconds.
Example: 0
cumulativeRunningTime
Integer
Total engine running time in seconds.
Example: 435
deviceSerial
String
Serial number of the device.
Example: 2209602947
groupName
String
Name of the assigned group.
Example: 246 - Richmond
lastKnownTime
TimeStamp
Last known time in milliseconds.
Example: 1662614865000
hardBreakingCount
Integer
Number of hard braking events.
Example: 0
vehicleName
String
Name of the Vehicle.
Example: 211721
deviceTypeId
Integer
Type ID of the device, 1-Datalogger
Example: 1
city
String
City name.
Example: Hampton
tripDistance
Double
Distance covered during the trip in kilometers.
Example: 161.9
fuelConsumption
Double
Fuel consumed in the trip in liters.
Example: 5.718
customerId
Integer
Unique Azuga ID of the customer.
Example: 2748
tripDuration
Integer
Trip duration in seconds .
Example: 7191
tripNumber
Integer
Represents a unique ID assigned to a specific trip, allowing the system to track and reference that particular journey or route.
Example: 2982
criticalSpeedEventCounts
Integer
Number of critical speeding events.
Example: 0
address
String
Full address.
Example: Beach Rd, Hampton, VA, 23664, USA
averageSpeed
Integer
Average speed during the trip in kilometers per hour.
Example: 89
overSpeedingCount
Integer
Number of overspeeding events.
Example: 0
userId
String,UUID
Unique ID of the user.
Example: 8a9388a8-7ece-11ca-0180-2a03414d30a0
reverseCount
Integer
Number of times reverse gear was used.
Example: 0
messageEventTypeId
Integer
ID of the message event type.
Example: 0
zipCode
String
ZIP code.
Example: 23664
country
String
Country name.
Example: USA
deviceAssociatedVIN
String
VIN associated with the device.
Example: 1GC0WLE72NF301637
groupId
String,UUID
Unique Identifier of the Group.
Example: f93b0060-003c-11e6-b6f7-25bdd57524e3
tripIdleTime
Integer
Total idle time in trip in seconds.
Example: 674
consumedAir
Integer
Air consumption metric.
Example: 241523
startWithReverse
Boolean
Indicates if trip started in reverse.
Example: false
vendorTypeId
Integer
Vendor type identifier.
Example: 1
criticalSpeedDuration
Integer
Duration of critical speed in seconds.
Example: 0
locationTime
Time Stamp
Time the location was recorded in milliseconds.
Example: 1662614865000
odometer
Integer
Odometer reading in kilometers.
Example: 13324
offset
Integer
Time zone offset
Example: -240
virtualTripEnd
Boolean
Indicates if virtual trip ended.
Example: false
imei_meid
String
IMEI or MEID of the device.
Example: 352602114358374
insideHOO
Boolean
Indicates if inside hours of operation.
Example: true
lastKnownLat
Double
Last known latitude of the vehicle in degrees.
Example: 25.7654632
storedLocation
Boolean
Indicates whether location is stored.
Example: false
protocolVersionIdChange
Boolean
Indicates whether protocol version changed.
Example: false
hardAccelerationCount
Integer
Number of hard acceleration events.
Example: 0
lastKnownAddress
String
Last known address.
Example: Beach Rd, Hampton, VA, 23664, USA
privacyModeEnable
Boolean
Indicates if privacy mode is enabled.
Example: false
vehicleId
String,UUID
Unique vehicle ID.
Example: 175f5009-ee66-11ec-9345-ef904033436a
maxSpeed
Integer
Maximum speed recorded in kilometers per hour.
Example: 126
userName
String
Name of the user.
Example: Henry BRANDON
tripState
String
State of the trip.
Example: IGNITION_OFF
messageTypeId
Integer
Message type ID.
Example: 9
location
Location {
latitude: 34.12
longitude: -82.14
}
Current location object of the vehicle
latitude
Double
Latitude co-ordinate value in degrees
Example: 34.12
longitude
Double
Longitude co-ordinate value in degrees
Example: -82.34

Did this page help you?