- Created by YellowFox R&D, last modified on Jul 05, 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
You have English selected as language but this page has not been translated yet. Translate the page or view the content in the default space language below.
Display defaultden kürzesten Weg zwischen verschiedenen Standorten planen
Beschreibung
plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=orders_json_array
Parameters
Parameter | Beschreibung | Typ | Hinweis | Pflicht |
---|---|---|---|---|
company | RTI Firmenschlüssel | string | ja | |
vehicle | RTI Fahrzeugschlüssel | string | ja | |
profile |
| string | nein | |
orders | die position zu ordnen | json-array | die orders in Json format (sehe unten) | ja |
ein order(Punkt) besteht aus:
Parameter | Beschreibung | Typ | Hinweis | Pflicht |
---|---|---|---|---|
id | int | ja | ||
lat | Latitude des punktes | double | ja | |
lon | Longitude des punktes | double | ja | |
meta | string | nein | ||
type |
| string | nein |
Rückgabewerte
Es wird ein string zurückgegeben. Bei Erfolg wird als Antwort "OK" zurückgegeben. Ansonsten wird ein "ERROR:Beschreibung" zurückgegeben
JSON Format
Parameter | Beschreibung | Typ |
---|---|---|
time | tour time in seconds | int |
distance | tour distance in meter | int |
points | die Standorte in kürzesten reinfolge | json-array |
error |
{"time": 16577,"distance": 238441,"points": [{"id": 1,"type": "start","lat": 51.0311742,"lon": 13.6034718,"meta": "YF"},{"id": 3,"type": "","lat": 51.042972,"lon": 13.794998,"meta": "Dresden"},{"id": 2,"type": "","lat": 51.268333,"lon": 14.326741,"meta": "Neschwitz"},{"id": 4,"type": "","lat": 51.305518,"lon": 13.295992,"meta": "Riesa"},{"id": 5,"type": "end","lat": 51.0311742,"lon": 13.6034718,"meta": "YF"}],"error": null}
Beispiele
http://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=[{"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"}]
http://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=[{"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}]
http://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=[{"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"}]
http://map.yellowfox.de/rti/plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=[{"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}]
- No labels