Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

den kürzesten Weg zwischen verschiedenen Standorten planen

Beschreibung

plan_sequence.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&profile=truck&orders=orders_json_array

Parameters

ParameterBeschreibungTypHinweisPflicht
companyRTI Firmenschlüsselstring ja
vehicleRTI Fahrzeugschlüsselstring ja
profile
  • truck
  • car
  • pedestrian
  • bicycle
string


nein
ordersdie position zu ordnenjson-array

die orders in Json format (sehe unten)

ja

ein order(Punkt) besteht aus:


ParameterBeschreibungTypHinweisPflicht

id


int
ja
latLatitude des punktesdouble

ja

lonLongitude des punktesdouble
ja
meta
string
nein
type
  • start
  • end
    wenn es eingegeben, wurde die
    punkt als start oder ende punkt eingesetzt.
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

ParameterBeschreibungTyp

time

tour time in seconds
int

distance

tour distance in meter

int

points

die Standorte in kürzesten reinfolgejson-array
error



Code Block
titleBeispiel
{"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

Code Block
titleEinfacher Auftrag
http://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext


Code Block
titleBeispiel mit Navigationsziel und Zielankunftszeit
http://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&target_time=201411310800


Code Block
titleBeispiel mit Navigationsziel + Formular + Sortiernummer + Textlayout
http://map.yellowfox.de/rti/do_order.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&customorderid=NR1234&ordertext=Auftragstext&lat=51.0374&lon=13.587813&street=Hauptstr&hnr=3&zipcode=01723&city=Kesselsdorf&country=D&sortnumber=1&formname=Abholung&textlayout=2