Latest Location of Vehicles

This API allows you to get the latest location of all vehicles in your account. You are allowed to fetch the details of vehicles you have access to. Pass an empty body parameter if you are looking for data of all vehicles. All body parameters specified below are optional.

📘

Sample Request

https://services.azuga.com/azuga-ws-oauth/v3/vehicles/latestlocation

API Response explanation

FieldDescriptionData Type
generatedAtInMillisTime at which the API returns the result. The time is in UTC milliseconds.Long
dataArray of objects representing the meta-data of the vehicle and latest locationArray
trackeeIdUnique identifier representing the vehicleString
trackeeNameName of the vehicleString
deviceIdUnique identifier representing the deviceString
userIdUnique identifier representing the driverString
firstNameFirst name of the driverString
lastNameLast name of the driverString
groupIdUnique identifier representing the groupString
groupNameName of the groupString
assetNoAsset number configured for the vehicleString
timeZoneFor Azuga internal useString
displayTimeZoneFor Azuga internal useString
offsetThe offset between GMT timezone and the local timezone of the vehicleint
latLatitude of the locationDouble
lngLongitude of the locationDouble
locationStoreIdUnique identifier representing the locationString
addressAddress of the locationString
deviceTypeIdUnique identifier representing the type of the device.

1 = Datalogger
6 = Asset Tracker
11 = SafetyCam
int
trackeeTypeIdUnique identifier representing the type of the vehicle. The following values are valid:

1 = Vehicle
2 = Mobile User
3 = Asset
Integer
serialNumFor internal Azuga useString
bgColorHex code of the background color of the icon associated with the vehicleString
colorHex code of the icon color associated with the vehicleString
cogFor Azuga internal useShort
speedSpeed of the vehicle in KmsInteger
idlingIdling time recorded for the current tripInteger
fixQualityFix quality indicates the quality of the lat/lon captured. Fix quality = 0,1 indicates good quality and 2 indicates poor qualityInteger
phoneNumberPhone number of the driverString
profilepicUrlFor Azuga internal useString
overSpeedPeakSpeedPeak speed of the vehicle during over speedingInteger
overSpeedAverageSpeedAverage speed of the vehicle during over speedingInteger
hardbrakeInitialSpeedInitial speed when the hard brake event occurredInteger
hardbrakeFinalSpeedFinal speed when the hard brake event occurredInteger
eventTypeName of the event typeString
iconAvailableFor Azuga internal useString
emailEmail address of the driver associated with the vehicleString
nearestLandmarkIdUnique identifier representing the nearest landmarkString
nearestLandmarkNameName of the nearest landmark recordedString
tripStateIdUnique identifier representing the trip state

0 = Stopped
1 = Moving
2 = Idling
3 = Over Speeding
Byte
dateAndTimeTimestamp of the event in UTC millisecondsTimestamp
timeDifferenceFor Azuga internal useBigInteger
stopFor Azuga internal useBigInteger
statusFor Azuga internal useString
pairingTypeIdUnique identifier representing the pairing type

0 = Web
1 = Bluetooth
2 = Beacon
3 = NoPairing
4 = E-Logs
6 = Beacon Button
7 = QR Code
Integer
eventNameName of the eventString
fenceNameFor Azuga internal useString
eventCodeFor Azuga internal useString
licensePlateNoLicense plate number added for the vehicleString
identificationFor Azuga internal useString
iconNameName of the icon selected for the vehicleString
iconUrlFor Azuga internal useString
elogsDriverIdFor Azuga internal useString
vehicleTypeNameName of the vehicle typeString
vehicleTypeIdUnique Identifier assigned to the vehicle type.
The codes are listed from 1-15 are according to the types of vehicles. The Azuga codes to identify them are:

1- Car
2- Truck,
3- School Bus
4- Coach Bus
5-Limousine
6- Van
7- Car(Sedan)
8- Car(Hatchback)
9- Car [Life Utility Vehicle (LUV)]
10- Car [Multi utility vehicle(MUV)]
11-Car[Sport utility vehicle (SUV)]
12-Bus
13-Pickup/Light Trucks
14-Sprinter
15-Hearse
Integer
employeeIdEmployeeId of the driverString
lastKnownLatLatitude of the previous known record. This parameter is used when the device is unable to receive lat/lon coordinatesDouble
lastKnownLonLongitude of the previous known record. This parameter is used when the device is unable to receive lat/lon coordinatesDouble
lastKnownFixQualityLast known fix quality of the address. Fix quality indicates the quality of the lat/lon captured. Fix quality = 0,1 indicates good quality and 2 indicates poor qualityInteger
lastKnownAddressAddress of the previous record. This parameter is used when the device is unable to receive lat/lon coordinatesString
lastKnownTimeTime of the previous record in UTC milliseconds. This parameter is used when the device is unable to receive lat/lon coordinatesTimestamp
peripheralDeviceSerialNumFor Azuga internal useString
realLKL_addressThis parameter stores valid last address of the location when the device was able to fetch the location coordinates. Customers can make use of this field when the device is unable to fetch lat/lon/address for multiple entriesString
realLKL_timeThis parameter stores the time in UTC milliseconds when the device is able to fetch valid lat/lon coordinates. Customers can make use of this field when the device is unable to fetch lat/lon/address for multiple entriesTimestamp
maxBrakingFor Azuga internal useBigInteger
customerIdUnique identifier representing the customerLong
lastTripEndTimeLast trip end time of the vehicle in UTC millisecondsLong
trackeeTagsNamesFor Azuga internal useString
obdValueFloatFor Azuga internal useFloat
totalDistanceTravelledTotal distance travelled by the vehicle in Kmsdouble
totalFuelConsumedTotal fuel consumed in litersdouble
totalConsumedAirFor Azuga internal usedouble
fuelTypeIdUnique identifier representing the fuel typebyte
odometerReadingOdometer reading of the vehicle in KmsBigInteger
assetStartEngineHourEngine start time in hours of the assetBigInteger
assetEndEngineHourEngine end time in hours of the assetBigInteger
accumsFor Azuga internal useString
showAssetSensorInfoFor Azuga internal useboolean
dispatchNumberFor Azuga internal useString
dispatchStatusFor Azuga internal useString
dispatchInfoFor Azuga internal useString
dispatchRedirectURLFor Azuga internal useString
showPlayButtonFor Azuga internal useboolean
tirePossitionFor Azuga internal useString
tirePressureTypeFor Azuga internal useInteger
previousStateFor Azuga internal useString
isTirePressureDetectedFor Azuga internal useBoolean
tirePositionValueFor Azuga internal useString
subTypesFor Azuga internal useString
isLowTirePressureFor Azuga internal useBoolean
eventAliasIdFor Azuga internal useString
confidenceFor Azuga internal useString
isCrashFor Azuga internal useBoolean
accInitialSpeedFor Azuga internal useInteger
accFinalSpeedFor Azuga internal useInteger
storedLocationBoolean indicating whether the address updated is the most recent one or a stored(previous record's) one. The stored location details gets updated when the device is unable to fetch the location details in the most recent record.

True = Stored one
False = Most recent(latest)
boolean
Language
Credentials
Header
Click Try It! to start a request and see the response here!