1

Wialon Remote API orders service issue

(edited by cerpas 16/04/2021 20:16:56)

Topic: Wialon Remote API orders service issue

Hello guys, First at all, A long time ago I  created my own API named ALP (Logistics Planning API) to make easier to my and my clients create orders or routers over logistics (wialon) from "3rdparty" apps using the service orders, Then actually I working with ALP to solve a really disconcerting issue to my, My issue basically is when I have create a route with logistics UI for the future example for tomorrow, If today I enter on logistics this route is created like planing that is ok but when I'm going to enter on logistics tomorrow this route will be in the section route active. So my problem is when I have created the route from my API (ALP)  the route never change to active, Important information is this behavior just occurs when the route has a start warehouse if the route does not have a start warehouse change to active with out problems, For this reason I have Thought maybe my issue is the optimization params or orders params o warehouse params, but I have checked wialon optimize request and order request and I can't see any important difference between wialon request and ALP request, This issue also occurs if the route was created for today for example. Next I going to show you all request

This is wialon's order/update request

{"uid":0,"id":0,"n":"asdsad","p":{"n":"","p":"","p2":"","e":"","a":"Ave Cervantes, Tegucigalpa, Honduras","v":0,"w":"0","c":0,"d":"","ut":600,"t":"","r":null,"cid":"","ntf":0,"pr":0,"tags":[],"criterions":{"max_late":null}},"f":1,"tf":1618581600,"tt":1618614000,"r":100,"y":14.1064195633,"x":-87.2075881958,"u":"","s":0,"trt":3600,"cf":{},"itemId":14622130,"callMode":"create"}

This is ALP's order/update request

{"uid":0,"id":0,"n":"ts-5","p":{"n":"ts-5","p":"","p2":"","e":"","a":"some address","v":0,"w":0,"c":0,"ut":60,"t":"","d":"","tags":[],"ntf":0,"cid":"","uic":"","pr":0,"r":null},"f":3,"tf":1618552800,"tt":1618639140,"r":100,"y":14.0646213000000006587697498616762459278106689453125,"x":-87.1846881000000024641849449835717678070068359375,"u":0,"trt":3600,"s":0,"itemId":14622130,"callMode":"create"}

This is Wialon's order/optimize request

{"itemId":14622130,"orders":[222,223],"warehouses":[{"y":14.0988063812,"x":-87.1825790405,"tf":1618581600,"tt":1618614000,"f":4,"p":{"ut":600},"trt":3600},{"y":14.0786390305,"x":-87.1990661621,"tf":1618581600,"tt":1618614000,"f":8,"p":{"ut":600},"trt":3600}],"flags":131,"units":[16189777],"gis":{"addPoints":1,"provider":1,"speed":15,"cityJams":1,"countryJams":1},"priority":{},"criterions":{"optimizer_mode":"covid","penalty_order_skip_any":5000000,"penalty_order_late_time_to":4,"penalty_order_late_time_to_fact":35000,"penalty_order_late_time_from":0.5,"penalty_unit_use_fact":250000,"penalty_unit_driving_duration":1,"penalty_unit_idling_duration":1,"penalty_unit_driving_mileage":2}}

This is ALP's order/optimize request

{"itemId":14622130,"orders":[222],"units":[16189777],"warehouses":[{"y":14.076807654286000115462229587137699127197265625,"x":-87.2008895874020026894868351519107818603515625,"tf":1618573980,"tt":1618639140,"f":4,"p":{"ut":600},"trt":3600},{"y":14.0784605476000006518688678625039756298065185546875,"x":-87.162265663499994161611539311707019805908203125,"tf":1618552800,"tt":1618635600,"f":8,"p":{"ut":600},"trt":3600}],"flags":131,"gis":{"addPoints":1,"provider":1,"speed":40,"cityJams":1,"countryJams":1},"criterions":{"optimizer_mode":"covid","penalty_order_skip_any":5000000,"penalty_order_late_time_to":4,"penalty_order_late_time_to_fact":35000,"penalty_order_late_time_from":0.5,"penalty_unit_use_fact":250000,"penalty_unit_driving_duration":1,"penalty_unit_idling_duration":1,"penalty_unit_driving_mileage":2},"priority":[]}

So really right now I have no idea what I should do to solve this issue, I hope your team can help me.

Another comment in my opinion order service documentation is a little bit poor. Some params there aren't or are confusing.

Regards, thanks in advance.

2

Wialon Remote API orders service issue

(edited by cerpas 20/04/2021 19:31:40)

Re: Wialon Remote API orders service issue

Hello, I have found my issue, It is that I put a wrong value for timestamp tf and tt on warehouses array. Please mark this post as solve.

Regards.