This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:order:optimize [07/05/2020 14:02] shmi [Parameters] |
en:sidebar:remoteapi:apiref:order:optimize [26/02/2025 12:05] (current) vota [Parameters] |
||
---|---|---|---|
Line 52: | Line 52: | ||
| mode | transport: driving, walking, bicycling or transit (only for google provider) | | | mode | transport: driving, walking, bicycling or transit (only for google provider) | | ||
| avoid | restrictions to the route: tolls, highways, ferries and/or indoor (only for google provider) | | | avoid | restrictions to the route: tolls, highways, ferries and/or indoor (only for google provider) | | ||
- | | departure_time | desired time of departure (only for google provider) | | + | | departure_time | take into account the order interval for the traffic_model option: 0 - no, 1 - yes (only for google provider) | |
| traffic_model | assumptions: best_guess, pessimistic or optimistic (only for google provider) | | | traffic_model | assumptions: best_guess, pessimistic or optimistic (only for google provider) | | ||
| transit_mode | preferred modes: bus, subway, train, tram and/or rail (only for google provider) | | | transit_mode | preferred modes: bus, subway, train, tram and/or rail (only for google provider) | | ||
Line 77: | Line 77: | ||
| 0x100 | order is terminated | | | 0x100 | order is terminated | | ||
| 0x200 | added visit reload warehouse | | | 0x200 | added visit reload warehouse | | ||
- | | 0x300 | route splited to several | | + | | 0x300 | route split to several | |
+ | | 0x400| split to independent route | | ||
+ | | 0x1000 | without optimization | | ||
+ | | 0x2000| calculate predict distance | | ||
=====Response===== | =====Response===== | ||
Line 120: | Line 122: | ||
:!: If only warehouse orders were assigned to unit(**0x4** flag) - it will not appear in the response. | :!: If only warehouse orders were assigned to unit(**0x4** flag) - it will not appear in the response. | ||
\\ :!: If route splited to several, it will be routes array in the response. | \\ :!: If route splited to several, it will be routes array in the response. | ||
+ | \\ :!: "p":<text> - order route, google polyline encoding format |
|