Changes for page plan_sequence.php

Last modified by YellowFox_RD on 2025/01/23 10:07

From version 1.1
edited by YellowFox_RD
on 2024/12/19 10:11
Change comment: Imported from XAR
To version 2.1
edited by YellowFox_RD
on 2025/01/23 10:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,14 +1,20 @@
1 1  (% class="box" %)
2 -(((Table of Contents)))
2 +(((
3 +Table of Contents
4 +)))
5 +
3 3  {{toc/}}
4 4  
5 5  Route optimization function (only for customers with PTV as map provider or customers who have booked the Multi Map Option)
6 6  
7 7  = Beschreibung =
8 -**(% class="blue mark" %)POST(%%) plan_sequence.php?****company**=//COMPANY_RTIKEY//**&vehicle**=//VEHICLE_RTIKEY//**&profile=**truck**&points=points_json_array**
11 +
12 +(% class="blue mark" %)**POST**(%%)** plan_sequence.php?company**=//COMPANY_RTIKEY//**&vehicle**=//VEHICLE_RTIKEY//**&profile=**truck**&points=points_json_array**
13 +
9 9  = Parameters =
15 +
10 10  |=Parameter|=Description|=Type|=Notes|=Mandatory
11 -|company|RTI Company key|string||Yes
17 +|company|RTI Company key|string| |Yes
12 12  |vehicle|RTI Vehicle key|string|One of the parameters vehicle, group or import must always be given!|(Yes)
13 13  |group|RTI Group key|string|One of the parameters vehicle, group or import must always be given!|(Yes)
14 14  |import|RTI Import key (All vehicles)|string|One of the parameters vehicle, group or import must always be given!|(Yes)
... ... @@ -18,13 +18,13 @@
18 18  )))|string|Standard is "car"|No
19 19  |points|The orders / destinations which should be optimized|json-array|See description "points_json_array"|Yes
20 20  
21 -=== **points_json_array** ===
27 +== **points_json_array** ==
22 22  
23 23  |=Parameter|=Description|=Type|=Notes|=Mandatory
24 -|id||int||Yes
25 -|lat|Latitude of the point|double||Yes
26 -|lon|Longitude of the point|double||Yes
27 -|meta||string||No
30 +|id| |int| |Yes
31 +|lat|Latitude of the point|double| |Yes
32 +|lon|Longitude of the point|double| |Yes
33 +|meta| |string| |No
28 28  |type|(((
29 29  * start
30 30  * end
... ... @@ -31,8 +31,11 @@
31 31  )))|string|with this you can set the start and/or the end of the tour|No
32 32  
33 33  = Return =
40 +
34 34  A string is returned. If successful, "**OK**" is returned as response. Otherwise an "**ERROR:Description**" is returned.
42 +
35 35  == JSON Format ==
44 +
36 36  |=Parameter|=Description|=Type
37 37  |id|passed id|int
38 38  |type|"start", "end" oder ""|string
... ... @@ -42,46 +42,47 @@
42 42  
43 43  **example**
44 44  {{code language="js"}}{
45 - [
46 - {
47 - "id": 1,
48 - "type": "start",
49 - "lat": 51.0311742,
50 - "lon": 13.6034718,
51 - "meta": "YF"
52 - },
53 - {
54 - "id": 3,
55 - "type": "",
56 - "lat": 51.042972,
57 - "lon": 13.794998,
58 - "meta": "Dresden"
59 - },
60 - {
61 - "id": 2,
62 - "type": "",
63 - "lat": 51.268333,
64 - "lon": 14.326741,
65 - "meta": "Neschwitz"
66 - },
67 - {
68 - "id": 4,
69 - "type": "",
70 - "lat": 51.305518,
71 - "lon": 13.295992,
72 - "meta": "Riesa"
73 - },
74 - {
75 - "id": 5,
76 - "type": "end",
77 - "lat": 51.0311742,
78 - "lon": 13.6034718,
79 - "meta": "YF"
80 - }
81 - ]
54 + [
55 + {
56 + "id": 1,
57 + "type": "start",
58 + "lat": 51.0311742,
59 + "lon": 13.6034718,
60 + "meta": "YF"
61 + },
62 + {
63 + "id": 3,
64 + "type": "",
65 + "lat": 51.042972,
66 + "lon": 13.794998,
67 + "meta": "Dresden"
68 + },
69 + {
70 + "id": 2,
71 + "type": "",
72 + "lat": 51.268333,
73 + "lon": 14.326741,
74 + "meta": "Neschwitz"
75 + },
76 + {
77 + "id": 4,
78 + "type": "",
79 + "lat": 51.305518,
80 + "lon": 13.295992,
81 + "meta": "Riesa"
82 + },
83 + {
84 + "id": 5,
85 + "type": "end",
86 + "lat": 51.0311742,
87 + "lon": 13.6034718,
88 + "meta": "YF"
89 + }
90 + ]
82 82  }{{/code}}
83 83  
84 84  = Example =
94 +
85 85  **with fixed start and end**
86 86  {{code language="java"}}https://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&points=[{"id":1,"meta":"YF","lat":51.0311742,"lon":13.6034718,"type":"start"},{"id":2,"meta":"Neschwitz","lat":51.268333,"lon":14.326741},{"id":3,"meta":"Dresden","lat":51.042972,"lon":13.794998},{"id":4,"meta":"Riesa","lat":51.305518,"lon":13.295992},{"id":5,"meta":"YF","lat":51.0311742,"lon":13.6034718,"type":"end"}]
87 87  
... ... @@ -103,6 +103,7 @@
103 103  https://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&profile=truck&points=[{"id":1,"meta":"YF","lat":51.0311742,"lon":13.6034718},{"id":2,"meta":"Neschwitz","lat":51.268333,"lon":14.326741},{"id":3,"meta":"Dresden","lat":51.042972,"lon":13.794998},{"id":4,"meta":"Riesa","lat":51.305518,"lon":13.295992},{"id":5,"meta":"YF","lat":51.0311742,"lon":13.6034718,"type":"end"}]{{/code}}
104 104  
105 105  = Error =
116 +
106 106  |=Error|=Description
107 107  |ERROR:PTV_OR_MULTI_MAP_IS_REQUIRED|You need PTV as a card provider or the paid option "multi card", please contact our sales department
108 108  |ERROR:NO_CAR_IN_MIN_BUSINESS_TARIFF|At least 1 vehicle must have a business tariff or higher