Тема: optimize order issue logistics
Hello.
A while ago I created my own API to integrate logistics with other platforms this api works very well, but yesterdey i was create a route whit priority in many orders, really before your last actualization this priority works fine, but from the last update this priority does not work.
I tried replicate this issue in wialon logistics but I get diferents response although I have the same request.
These are my orders.
[
[1,{"id":1,"n":"prueba new api","f":1,"tf":1543586400,"tt":1543626000,"trt":3600,"uid":17055,"r":100,"y":14.0750179291,"x":-87.2007751465,"u":0,"s":0,"sf":0,"st":0,"cnm":0,"if":0,"nt":0,"stt":0,"dtt":0,"eta":0,"rd":0,"ds":0,"p":{"a":"en algun lugar del tegucigalpa","c":0,"cid":"","d":"","e":"","n":"","ntf":0,"p":"","p2":"","pr":0,"r":null,"t":"","tags":[],"uic":"","ut":600,"v":0,"w":0},"ej":[],"dp":null,"tz":-134173792,"rp":""}],[2,{"id":2,"n":"prueba new api 4","f":1,"tf":1543586400,"tt":1543626000,"trt":3600,"uid":17056,"r":100,"y":14.0843524933,"x":-87.2092437744,"u":0,"s":0,"sf":0,"st":0,"cnm":0,"if":0,"nt":0,"stt":0,"dtt":0,"eta":0,"rd":0,"ds":0,"p":{"a":"en algun lugar del tegucigalpa","c":0,"cid":"","d":"","e":"","n":"","ntf":0,"p":"","p2":"","pr":0,"r":null,"t":"","tags":[],"uic":"","ut":600,"v":0,"w":0},"ej":[],"dp":null,"tz":-134173792,"rp":""}],[4,{"id":4,"n":"prueba H&W","f":1,"tf":1543586400,"tt":1543626000,"trt":3600,"uid":17057,"r":100,"y":14.0750179291,"x":-87.1793212891,"u":0,"s":0,"sf":0,"st":0,"cnm":0,"if":0,"nt":0,"stt":0,"dtt":0,"eta":0,"rd":0,"ds":0,"p":{"a":"en algun lugar del tegucigalpa","c":0,"cid":"","d":"","e":"","n":"","ntf":0,"p":"","p2":"","pr":0,"r":null,"t":"","tags":[],"uic":"","ut":600,"v":0,"w":0},"ej":[],"dp":null,"tz":-134173792,"rp":""}],[5,{"id":5,"n":"prueba new api 2","f":1,"tf":1543586400,"tt":1543626000,"trt":3600,"uid":17058,"r":100,"y":14.0766830444,"x":-87.1859741211,"u":0,"s":0,"sf":0,"st":0,"cnm":0,"if":0,"nt":0,"stt":0,"dtt":0,"eta":0,"rd":0,"ds":0,"p":{"a":"en algun lugar del tegucigalpa","c":0,"cid":"","d":"","e":"","n":"","ntf":0,"p":"","p2":"","pr":0,"r":null,"t":"","tags":[],"uic":"","ut":600,"v":0,"w":0},"ej":[],"dp":null,"tz":-134173792,"rp":""}]]
This is the request generate through my API
{"itemId":14622130,"orders":[1,2,4,5],"units":[13301377],"warehouses":[{"y":14.0568415,"x":-87.2524575,"tf":1543672800,"tt":1543705200,"f":4,"p":{"ut":600},"trt":3600},{"y":14.1170055,"x":-87.224418,"tf":25200,"tt":61200,"f":8,"p":{"ut":600},"trt":3600},{"y":14.070979853189,"x":-87.179946899414,"tf":25200,"tt":61200,"f":16,"p":{"ut":600},"trt":3600}],"flags":4227,"criterions":[],"gis":{"addPoints":1,"provider":2,"speed":45,"cityJams":1,"countryJams":1},"priority":{"0":{"0":1,"1":2,"2":3,"3":4}},"busyRoutes":{"0":[]}}
This is the reponse of my API
{"13301377":{"orders":[{"id":4,"ml":0,"tm":1543586400,"p":""},{"id":2,"ml":14764,"tm":1543588213,"p":"_oxtAbnpsOKNGJELETCLILKLIDIBEDG@KAQGMX]d@m@v@]j@SXUd@Sd@GRITYj@u@`B]n@QX?J@FBJDJDDHH\\AZ@`@El@ELCRERGVIRKTKVOd@W`@YZSPK\\Sv@e@v@g@t@c@j@]d@Sp@Wt@Q`@KXETClAKPAf@AT?X??Bl@Db@Fr@HhBRpCXjBRt@Fx@Jf@@d@A^A\\C\\EXEl@MFAVGFCNEXKZOb@Wh@[h@c@v@m@~@u@fBsAf@c@ZYTYRYT]Ta@Vk@Ne@Ne@J_@BYDUDUBSB]@c@@e@DqA@yA@gAF_CCwAHs@DqCDsA@}@@m@B_A@e@Be@Fm@Dm@Ho@Fi@Jk@TyBf@qB`@gAJSb@aABE@GBE@EBE@GBE@EB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@Eg@Ke@KmA[_@KkA_@cA_@uIaDcCu@{AY_@Ke@ImASe@Kw@KiDK}BGm@E}AEgAECAoDKcDKG?CdBG~AM~BKnDOrD?|@bC`C^d@OlC?|A?vAGrA?TAp@Ad@Ah@OlCEtCIvCCd@GfACx@@^EjA?LA~@Gj@O^S\\i@l@STUR[^Y\\EJELALEX@ZCTBlA@JNpABTFr@FVAh@Ij@EPK^Wp@GPIPS^_@~@Q`@_AvBQf@c@`AKZUx@CJgBxFq@vBAFQbAMn@AHM~@s@zEId@QxAOlAGd@E^ERM^]r@WXe@j@i@^a@P[Js@L_AJg@BiBFmFZ{BLuAJwCJ[FGdDOAG@E?_@KGEECCCKKOKWYGGKKMKMMYSa@YUK[MgAa@]MQGKEKGMIm@m@{@eAKMSSe@k@]a@WWUSQKOKUKOIQGQGSG]GYEq@EY@YBM@SDaB`@_ADg@@MAKAQCUCOEKEOGUMQM[UQMSUQS[g@g@aASe@Yk@O_@MYI[GYG[Ky@Gi@]C_DVg@DI?OGKGGEGECGq@gASa@KQIKGIGIWMMAS@gA^u@?B_AHqAkAi@UKo@]b@mA"}]},"success":1}
This is the request generated in logistics
{"itemId":14622130,"orders":[1,2,4,5],"warehouses":[{"y":14.0568418503,"x":-87.252456665,"tf":1543586400,"tt":1543618800,"f":4,"p":{"ut":600},"trt":3600},{"y":14.1170053482,"x":-87.2244186401,"tf":1543586400,"tt":1543618800,"f":8,"p":{"ut":600},"trt":3600}],"flags":4227,"units":[13301377],"gis":{"addPoints":1,"provider":2,"speed":15,"cityJams":1,"countryJams":1},"priority":{"0":{"0":1,"1":2,"2":3,"3":4}},"busyRoutes":{"0":[]}}
This is the reponse in logistics
{"13301377":{"orders":[{"id":4,"ml":0,"tm":1543592527,"p":""},{"id":0,"ml":7626,"tm":1543594141,"p":"_oxtAbnpsOKNGJELETCLILKLIDIBEDG@KAQGFKBKBW@S@Q?M@aA@g@@U@k@CgAAs@Ck@CaA@SDq@BS@SLyABs@A]AGAKIYIOAECKCECG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BM@SDaB`@_ADg@@MAKAQCUCOEKEOGUMQM[UQMSUQS[g@g@aASe@Yk@O_@M[IYGYG[Ky@Gi@]]_DVg@DI?OGKGGEGECGq@gASa@KQIKGIGIWMMAS@gA^u@?B_AHqAkAi@UKo@]b@mA"}]},"success":1}
How you can see my API generate the same request that logistics, but I have a diferent response, in my request aparently ignore the priority. Really I have no idea what happen or what I doing wrong.
I hope your team can help me.
Again before your recently actualization all work fine. exactly the actualization of expiration time of route.
Regards.