Main.webfleet_ws_tacho - WS tacho

Page of - last modified by Admin on 2019/09/10 07:00

WS tacho

Admin

2019/09/10 07:00

Table of Contents

Request URL

GET http://etransportas.aktkc.lt/gps/api/webservices/tacho?key=KEY&uid=UID

Request parameters
Property	Type	Description	Default
uid	Number	User Id in Webfleet system
key	String	Authentication key: MD5(username;password;client_IP_Address)
key2	String	Authentication key: Key generation algorithm

Response

{
"status": {
"code": 200
},
"body": {
"tachos": [{
"carId": 11111,
"carNr": "ABC 617",
"tachoState": 3,
"driver1EventMinutesBefore": 4,
"driver1FullName": "VARDENIS PAVARDENIS",
"driver1Data": {
"driveShort": 245,
"driveLong": 531,
"restingNow": 0,
"restLeft": 0,
"weekTotalDrivenMinutes": 69,
"driveThisWeekLeft": 3291,
"minutesToDailyRest": 1105,
"minutesTillWeeklyRest": 4223,
"weekReducedDailyRests": 0,
"nineHoursTimesExceeded": 0
},
"driver2EventMinutesBefore": 880,
"driver2FullName": "VARDENIS PAVARDENIS",
"bothDriversCombinedData": {
"driveLong": 833,
"driveThisWeek": 5114
}
},
{
"carId": 11112,
"carNr": "BCA 917",
"tachoState": 0,
"driver1EventMinutesBefore": 1,
"driver1FullName": "VARDENIS PAVARDENIS",
"driver1Data": {
"driveShort": 270,
"driveLong": 600,
"restingNow": 847,
"restLeft": 0,
"driveThisWeek": 3360,
"weekTotalDrivenMinutes": 0,
"driveThisWeekLeft": 3360,
"minutesToDailyRest": 1260,
"minutesTillWeeklyRest": 7775,
"weekReducedDailyRests": 0,
"nineHoursTimesExceeded": 0
},
"driver2EventMinutesBefore": 4870,
"driver2FullName": "VARDENIS PAVARDENIS",
"bothDriversCombinedData": {
"driveLong": 1002,
"driveThisWeek": 6028
}
},
{
"carId": 11113,
"carNr": "RCA 408",
"tachoState": 0,
"driver1EventMinutesBefore": 4,
"driver1FullName": "VARDENIS PAVARDENIS",
"driver1Data": {
"driveShort": 0,
"driveLong": 181,
"restingNow": 33,
"restLeft": 0,
"weekTotalDrivenMinutes": 360,
"driveThisWeekLeft": 0,
"minutesToDailyRest": 396,
"minutesTillWeeklyRest": 0,
"weekReducedDailyRests": 0,
"nineHoursTimesExceeded": 0
}
}
}]
}
}

Json Body parameters
Property	Type	Description
tachos	Array	Array of tacho records
Array node tachos parameters
Property	Type	Description
carId	Integer	Car ID etransportas app
carNr	String	format "XXX 111"
tachoState	Integer	Values: 0 - break/rest, 1 - availability, 2- work, 3 - drive
driver1EventMinutesBefore	Integer	Driver 1 event data received before X minutes
driver1FullName	String	Driver 1 full name
driver1Data	Object	Data of driver 1
driver2EventMinutesBefore	Integer	Driver 2 event data received before X minutes (if exists)
driver2FullName	String	Driver 2 full name (if exists)
bothDriversCombinedData	Object	Both drivers data (if exists)
Object node driver1Data parameters
Property	Type	Description
driveShort	Integer	4.5 hours interval left time in minutes
driveLong	Integer	Day left time in minutes
restingNow	Integer	Resting now time in minutes
restLeft	Integer	Rest time left in minutes
weekTotalDrivenMinutes	Integer	Week drive total time in minutes
driveThisWeekLeft	Integer	Week drive time left in minutes
minutesToDailyRest	Integer	Minutes left until daily rest
minutesTillWeeklyRest	Integer	Minutes left until weekly rest
weekReducedDailyRests	Integer	Count of 9 hours rests during the week period
nineHoursTimesExceeded	Integer	Count of more than 9 hours of work days during the week period
Object node bothDriversCombinedData parameters
Property	Type	Description
driveShort	Integer	4.5 hours interval left time in minutes (if exists)
driveLong	Integer	Day left time in minutes (if exists)
restingNow	Integer	Resting now time in minutes (if exists)
restLeft	Integer	Rest time left in minutes (if exists)
driveThisWeek	Integer	Week drive time left in minutes (if exists)