Wiki source code of set_tracking.php

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

Hide last authors
YellowFox_RD 1.1 1 (% class="box" %)
Dominic Lippmann 2.1 2 (((
3 Table of Contents
4 )))
5
YellowFox_RD 1.1 6 {{toc/}}
7
Dominic Lippmann 2.1 8 Sets the locating interval, at ignition on for a vehicle. Switches hardware specific the travel interval, time interval or course change.
YellowFox_RD 1.1 9
Dominic Lippmann 2.1 10 = Description =
11
12 (% class="blue mark" %)//**POST**//(%%)//** set_tracking.php?company**=COMPANY_RTIKEY**&vehicle**=VEHICLE_RTIKEY**&,mode=**intelligentlocating**&value=**active//
13
YellowFox_RD 1.1 14 = Parameter =
Dominic Lippmann 2.1 15
16 |=Parameter|=Description|=Type|=Note|=Mandatory
17 |company|RTI company key|string| |yes
18 |vehicle|RTI vehicle key|string| |yes
19 |mode|which type of locating interval should be set|string|(((
YellowFox_RD 1.1 20 * coursechange
21 * distanceinterval
22 * minuteinterval
23 * intelligentlocating
Dominic Lippmann 2.1 24 )))|yes
25 |value|Value of the selected interval|int/string|see "Possible values"|yes
YellowFox_RD 1.1 26
Dominic Lippmann 2.1 27 = Possible values =
28
29 |=Parameter|=Description|=Type|=Possible values
30 |coursechange|Locate at ignition on at course change|int|(((
31 * 0 = off
32 * 1 = on
YellowFox_RD 1.1 33 )))
Dominic Lippmann 2.1 34 |distanceinterval|Locate with ignition on for all X km|int|(((
35 * 0 = Kilometer tracking deactivated
36 * 1 = Locate every km
37 * 2 = Locate every 2 km
38 * 5 = Locate every 5 km
39 * 10 = Locate every 10 km
YellowFox_RD 1.1 40 )))
Dominic Lippmann 2.1 41 |minuteinterval|Locate with ignition on for all X min|int|(((
42 * 0 = Time interval disabled
43 * 1 = Locate every 1 minutes
44 * 2 = Locate every 2 minutes
YellowFox_RD 1.1 45
Dominic Lippmann 2.1 46 * 5 = Locate every 5 minutes
47 * 10 = Locate every 10 minutes
48 * 15 = Locate every 15 minutes
49 * 30 = Locate every 30 minutes
YellowFox_RD 1.1 50 )))
Dominic Lippmann 2.1 51 |intelligentlocating|when all 3 locating intervals are activated|string|(((
52 * inactive
53 * active
YellowFox_RD 1.1 54 )))
55
Dominic Lippmann 2.1 56 = Return =
YellowFox_RD 1.1 57
Dominic Lippmann 2.1 58 By default, a **CSV string** is returned, which contains **OK **for each vehicle on success. If an error occurs, an "**ERROR:Description**" is returned.
YellowFox_RD 1.1 59
Dominic Lippmann 2.1 60 = Example calls =
YellowFox_RD 1.1 61
Dominic Lippmann 2.1 62 **sets the locating interval to 5 km**
YellowFox_RD 1.1 63
Dominic Lippmann 2.1 64 {{code language="java"}}
65 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&mode=distanceinterval&value=5
66 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&mode=distanceinterval&value=5
67 {{/code}}
YellowFox_RD 1.1 68
Dominic Lippmann 2.1 69 **sets the locating interval to 2 minutes**
YellowFox_RD 1.1 70
Dominic Lippmann 2.1 71 {{code language="java"}}
72 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&mode=minuteinterval&value=2
73 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&mode=minuteinterval&value=2
74 {{/code}}
YellowFox_RD 1.1 75
Dominic Lippmann 2.1 76 **activates the change of course**
77
78 {{code language="java"}}
79 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&mode=coursechange&value=1
80 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&mode=coursechange&value=1
81 {{/code}}
82
83 **activates the intelligent tracking**
84
85 {{code language="java"}}
86 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&mode=intelligentlocating&value=active
87 https://map.yellowfox.de/rti/set_tracking.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&mode=intelligentlocating&value=active
88 {{/code}}