Changes for page plan_sequence.php
Last modified by YellowFox_RD on 2025/01/23 10:07
To version 2.1
edited by YellowFox_RD
on 2025/01/23 10:07
on 2025/01/23 10:07
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 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