Changes for page get_info.php

Last modified by YellowFox_RD on 2025/01/23 09:45

From version 5.1
edited by YellowFox_RD
on 2025/01/23 09:45
Change comment: There is no comment for this version
To version 2.1
edited by Dominic Lippmann
on 2025/01/23 09:44
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.YellowFox_RD
1 +XWiki.yf-dominic
Content
... ... @@ -34,7 +34,7 @@
34 34   "latitude": 0,
35 35   "longitude": 0
36 36   }
37 -}{{/code}}|object| |yes
37 +}{{/code}}|object||yes
38 38  |departure|Start coordinate for routing
39 39  {{code language="java"}}"departure": {
40 40   "coordinates": {
... ... @@ -49,11 +49,13 @@
49 49   "traffic_incidents": false,
50 50   "driving_regulation_ec_561": false,
51 51   "historic_speed": false
52 -}{{/code}}|object|By default all options are deactivated. You can also use only some of these options. The following options are available:(((
52 +}{{/code}}|object|By default all options are deactivated. You can also use only some of these options. The following options are available:
53 +(((
53 53  * **traffic_incidents**: Indicates if current traffic info (traffic jams, construction work etc.) should be used.
54 54  * **driving_regulation_ec_561**: Indicates if rules regarding steer and rest times according to EC 561/2006 should be used. Only if this is activated, the data given at //driver_info //will be used. If //driver_info //is not given, the data of the current driver of the vehicle will be used.
55 55  * **historic_speed**: Indicates if historical traffic info should be used, e.g. that driving during rush hour usually takes longer.
56 -)))|no
57 +)))
58 +|no
57 57  |driver_info|Driver data
58 58  {{code language="java"}}"driver_info": {
59 59   "last_time_the_driver_worked": "YYYY-MM-DDTHH:ii:ss+HH:ii",
... ... @@ -62,12 +62,14 @@
62 62   "elapsed_time_since_end_of_last_daily_rest": 0
63 63  }{{/code}}|object|If //driver_info //is not given, the data of the current driver of the vehicle will be used.
64 64  The option //driving_regulation_ec_561 //has to be activated in order to use the driver data.
65 -The following infos can be given:(((
67 +The following infos can be given:
68 +(((
66 66  * **last_time_the_driver_worked**: Time of last work time booking. Everything after that will be assumed as rest time. Is a timestamp in ISO 8601 format.
67 67  * **accumulated_driving_time_since_last_break**: Steering time since end of last break in seconds. The driver is not allowed to drive longer than 4.5 hours without break. If 4.5 hours have already been exceeded, the request will do the same as if the time is 4.5 hours.
68 68  * **accumulated_driving_time_since_last_daily_rest**: Steering time since end of last daily rest time in seconds. The driver is not allowed to drive longer than 9 hours before doing his next daily rest time. If 9 hours have already been exceeded, the request will do the same as if the time is 9 hours.
69 69  * **elapsed_time_since_end_of_last_daily_rest**: Time since end of last daily rest time in seconds. The driver has to do the next daily rest time 13 hours after shift begin at maximum. If 13 hours have already been exceeded, the request will do the same as if the time is 13 hours. This value can not be greater than //accumulated_driving_time_since_last_daily_rest.//
70 -)))|no
73 +)))
74 +|no
71 71  
72 72  = Return value =
73 73  
... ... @@ -139,9 +139,9 @@
139 139  
140 140  **Request with RTI key**
141 141  
142 -{{code language="java"}}https://map.yellowfox.de/rti/eta/get_info.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY{{/code}}
146 +|https:~/~/map.yellowfox.de/rti/eta/get_info.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY
143 143  
144 144  **Request with RTI ident**
145 145  
146 -{{code language="java"}}https://map.yellowfox.de/rti/eta/get_info.php?company=COMPANY_RTIKEY={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}{{/code}}
150 +|https:~/~/map.yellowfox.de/rti/eta/get_info.php?company=COMPANY_RTIKEY={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}
147 147