1

Error when creating route with SDK

Topic: Error when creating route with SDK

Hi

We have achieved to:
- create orders (and save its uid and id)
- optimice orders (and save the logical order optimiced)

But we are having problems for create the route with the order optimization defined. We receive error 4 WRONG PARAMS but I have checked and I am not capable to see the error.

This is our code we are using as params:

{
    "itemId": 13635918,
    "orders": [{
        "uid": 2755,
        "id": 604,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889767,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2756,
        "id": 605,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889767,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2757,
        "id": 606,
        "n": "A1",
        "p": {
            "pr": "99",
            "n": "COMAS+CANAL%2C+JOSEP+MARIA",
            "p": "973299371",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0.47",
            "c": "0",
            "d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364089.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.47+kg.",
            "uic": "81364089"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519808400,
        "r": 150,
        "y": 41.827736,
        "x": 1.542548,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2758,
        "id": 607,
        "n": "A1",
        "p": {
            "pr": "99",
            "n": "%2B%26%26%26GRANJA+GAIA+-MANEL+PUIG+CA",
            "p": "938880032%2F938...",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0.76",
            "c": "0",
            "d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+7.00-8.00+MATI.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364090.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.76+kg.",
            "uic": "81364090"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519808400,
        "r": 150,
        "y": 37.3897285461,
        "x": -4.11177015305,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2759,
        "id": 609,
        "n": "A1",
        "p": {
            "pr": "99",
            "n": "%2B786%3AAE++GJA.+CABANA+NEGRA",
            "p": "973482635",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0.69",
            "c": "0",
            "d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364091.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.69+kg.",
            "uic": "81364091"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519808400,
        "r": 150,
        "y": 40.6483306885,
        "x": -4.70399999619,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2760,
        "id": 610,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889768,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2761,
        "id": 614,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889769,
        "r": 150,
        "y": 39.8645591736,
        "x": 3.12765002251,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2762,
        "id": 615,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889769,
        "r": 150,
        "y": 41.750709,
        "x": 1.873567,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2763,
        "id": 616,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889770,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2764,
        "id": 617,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889770,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2765,
        "id": 618,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1519790400,
        "tt": 1519889770,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1519803372,
    "callMode": "create"
}

Could you please check it?

We have been 2 hours checking all and we dont know what to do already,

2

Error when creating route with SDK

Re: Error when creating route with SDK

Hi, alexismr.
I answered earlier...
You can see https://forum.gurtam.com/viewtopic.php? … 30#p142430

If you have any questions, i'll try help you.

Kind Regards, Gurtam Team

Команда LABS
3

Error when creating route with SDK

Re: Error when creating route with SDK

Hi Sets

I had checked your post yesterday night and I used in detail to create order and optimice (this is working)

I have checked "save route" in detail and I see all correct in our way (we only have less parameters we are not using, like r or tags inside the order) but all the other is okay. In fact, if we create the order manually individually it works erfectly with the same data, so I understand it is not related with the fact we dont use all the variables in order detail json

One doubt I have:  I defined routeId as time(), because in previous command (optimice route) I dont obtaint any route Id,

Could be this? On this case, how do I obtaint the route it?

Could you please check our command I pasted in my post to see what error we could habe been doing? I have been all the night with this and I am exhausted of checking all and see nothing bad

Thank you, our customer is already angry waiting for this because all the integration has took us 4 days already..

Thank you, hope you cna help me.

4

Error when creating route with SDK

Re: Error when creating route with SDK

I created route from you data( json ).
You missed property p.r.
this property stores:

{
            "i":0, - index order
            "id":1519821262172, - id route
            "m":0, - mileage
            "ndt":60,
            "t":0,
            "vt":1519790400 - visit time
        }

Your modified json: (only replace route_id, resource_id, order_id, uid, unit_id)

{
"itemId": resource_id,
"orders": [{
    "uid": uid,
    "id": id,
    "n": "A1",
    "p": {
        "pr": "",
        "n": "CENTRE+VET.+BERGUEDA+SL",
        "p": "938220052",
        "e": "",
        "a": "",
        "r":{
            "i":0,
            "id":route_id,
            "m":0,
            "ndt":60,
            "t":0,
            "vt":1519790400
        },
        "v": 1,
        "w": 0,
        "c": 0,
        "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
        "uic": "81364005"
    },
    "f": 2,
    "tf": 1519790400,
    "tt": 1519889767,
    "r": 150,
    "y": 42.101124,
    "x": 1.846267,
    "u": unit_id,
    "s": 0,
    "sf": 0,
    "trt": 5,
    "st": 0,
    "cnm": 0,
    "rp": "",
    "ej": {},
    "callMode": "update"
},{
    "uid": uid,
    "id": id,
    "n": "A1",
    "p": {
        "pr": "",
        "n": "CABALL+TORRUELLA%2C+EVA",
        "p": "973481503",
        "e": "",
        "a": "",
        "v": 1,
        "w": 1.32,
        "c": 0,
        "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
        "r":{
            "i":1,
            "id":route_id,
            "m":0,
            "ndt":60,
            "t":0,
            "vt":1519790400
        }
    },
    "f": 2,
    "tf": 1519790400,
    "tt": 1519889767,
    "r": 150,
    "y": 41.9939,
    "x": 1.524735,
    "u": unit_id,
    "s": 0,
    "sf": 0,
    "trt": 5,
    "st": 0,
    "cnm": 0,
    "rp": "",
    "ej": {},
    "callMode": "update"
}],
    "routeId": route_id,
    "callMode": "create"
}

Kind Regards, Gurtam Team

Команда LABS
5

Error when creating route with SDK

Re: Error when creating route with SDK

Hi.

I have already included the r property, but still have some problems. This is my code

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 2910,
        "id": 492,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "r": {
                "i": 1,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1519852913,
        "tt": 1519936313,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2911,
        "id": 493,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 2,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1519852913,
        "tt": 1519936313,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2912,
        "id": 497,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 3,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1519852914,
        "tt": 1519936314,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2913,
        "id": 498,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "r": {
                "i": 4,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1519852914,
        "tt": 1519936314,
        "r": 150,
        "y": 39.8645591736,
        "x": 3.12765002251,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2914,
        "id": 499,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "r": {
                "i": 5,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1519852915,
        "tt": 1519936315,
        "r": 150,
        "y": 41.7531890869,
        "x": 1.86412000656,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2915,
        "id": 500,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 6,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1519852915,
        "tt": 1519936315,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2916,
        "id": 501,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 7,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1519852915,
        "tt": 1519936315,
        "r": 150,
        "y": 41.3167495728,
        "x": 1.780189991,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2917,
        "id": 502,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "r": {
                "i": 8,
                "id": 1519849912,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1519852916,
        "tt": 1519936316,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 16067629,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1519849916,
    "callMode": "create"
}

Doubts I have:

routeId should be defined by you? I am using time in unix to define a routeId (as I am creating) and I define this routeId for all the orders, as you can see.

Could it be that "visit" time if it is before now, route is not generated?

I am still received error 4 WRONG params.

6

Error when creating route with SDK

Re: Error when creating route with SDK

Hi Another time

I have checked in detail and I have corrected the id of the unit assigned (I used your example of the other post and I was using id of unit we dont have acces).

Now my params code look like this:

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 2942,
        "id": 419,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "r": {
                "i": 1,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1519855903,
        "tt": 1519939303,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2943,
        "id": 423,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 2,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1519855903,
        "tt": 1519939303,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2944,
        "id": 441,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 3,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1519855905,
        "tt": 1519939305,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2945,
        "id": 444,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "r": {
                "i": 4,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1519855905,
        "tt": 1519939305,
        "r": 150,
        "y": 39.8645591736,
        "x": 3.12765002251,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2946,
        "id": 447,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "r": {
                "i": 5,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1519855906,
        "tt": 1519939306,
        "r": 150,
        "y": 41.7531890869,
        "x": 1.86412000656,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2947,
        "id": 449,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 6,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1519855906,
        "tt": 1519939306,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2948,
        "id": 450,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 7,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1519855906,
        "tt": 1519939306,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2949,
        "id": 491,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "r": {
                "i": 8,
                "id": 1519852903,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1519855907,
        "tt": 1519939307,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1519852903,
    "callMode": "create"
}

But I am still received error 4 WRONG PARAMS!

I am checking and all is exactly as you defined. My only doubt is:

Is the routeId generated by gurtam and we have to "read"? or it is an id we generate?

In order optimization answer I dont see any route Id

Do I need to put in blank?

Help please

7

Error when creating route with SDK

Re: Error when creating route with SDK

More info about this problem:

This is my last http call, where I still receive error 4 wrong params.

http://hst-api.wialon.com/wialon/ajax.html?svc=order/route_update&params={"itemId":13635918,"orders":[ { "uid": 0, "id": 0, "n": "ALMACEN GEPORK", "p": { "n": "", "p": "", "p2": "", "e": "", "a": "GEPORK", "v": 0, "w": 0, "c": "", "ut": 600, "t": "", "d": "", "uic": "", "cid": "", "r": { "vt": 1519853530, "ndt": 1200, "id": 1519853557668, "i": 0, "m": 0, "t": 0 }, "aff": "", "z": "", "ntf": 0, "cm": "", "tags": "" }, "f": 4, "tf": 1519772400, "tt": 1519945140, "r": 100, "y": 41.9815483093, "x": 2.29266047478, "u": 13760110, "s": 0, "sf": 0, "trt": 3600, "st": 0, "cnm": 0, "rp": "", "ej": {}, "callMode": "create" }, { "uid": 2942, "id": 419, "n": "CENTRE VET. BERGUEDA SL - 81364005", "p": { "n": "CENTRE VET. BERGUEDA SL", "p": "938220052", "p2": "", "e": "", "a": "", "v": "1", "w": "0", "c": "0", "ut": 600, "t": "", "d": "Tipo documento: ZRES. Horario cliente: 9:00 -14:00 // 16:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364005. Tipo documento : ZRES. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 0 kg.", "uic": "81364005", "cid": "", "r": { "vt": 1519857535, "ndt": 1200, "id": 1519853557668, "i": 1, "m": 64692, "t": 4005 }, "aff": "", "z": "", "ntf": 0, "cm": "", "pr": "" }, "f": 2, "tf": 1519855903, "tt": 1519939303, "r": 150, "y": 42.1011238098, "x": 1.84626698494, "u": 13760110, "s": 0, "sf": 0, "trt": 5, "st": 0, "cnm": 0, "rp": "}of_Gqw~LLLd@v@??ANQdACLGFYVuBhBWL??MLG@I@OAKEUMGE??}@rAgAjB??C^CNELOT??q@\a@H]K??TbANf@Ld@l@|@Zt@@ZEd@Mp@Ev@?f@Dp@??@fAGfA??XlABj@Kr@OhAC|@JdB??i@dAe@v@??_@Z_A^??Nz@Pj@Xl@f@fB??RVpAn@pBz@`@Vf@r@f@~@`@lART\HtALLHFJx@rDh@|B??QX[n@E\Hv@VnBFl@@z@??_@d@??UH??MEKAM@ML??x@\??r@R~@V??lFbBbFnB??hDvANF??NF??VJ??~Aj@??bExA??VJ??dGvBzHdD??xUlJ??jGbC??THRH??nEbB??lJtD??tAj@??rFtB??rCdAB@??f@Rz@X??JTLVd@jA??DL??BL??D~@?rDH`FLrBJd@??HpBP`D^~DD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CICG@??IBCBCHADAD??MDQDIBMDMF??oA|@??ECEAIAG?G@GBEDEDEHCHAH?L???F?H@B??cElC??eAqB??aBwC", "ej": {}, "callMode": "update" }, { "uid": 2943, "id": 423, "n": "CABALL TORRUELLA, EVA - 81364018", "p": { "n": "CABALL TORRUELLA, EVA", "p": "973481503", "p2": "", "e": "", "a": "", "v": "1", "w": "1.32", "c": "0", "ut": 600, "t": "", "d": "Tipo documento: ZTAX. Horario cliente: 9:00 -13:00 // 17:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364018. Tipo documento : ZTAX. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 1.32 kg.", "uic": "81364018", "cid": "", "r": { "vt": 1519860050, "ndt": 1200, "id": 1519853557668, "i": 2, "m": 41650, "t": 2515 }, "aff": "", "z": "", "ntf": 0, "cm": "", "pr": "" }, "f": 2, "tf": 1519855903, "tt": 1519939303, "r": 150, "y": 41.9939002991, "x": 1.52473497391, "u": 13760110, "s": 0, "sf": 0, "trt": 5, "st": 0, "cnm": 0, "rp": "uz}_GorgJS]??Wh@ERAV@\@`@B\C`@Eh@Gb@KZ??H^??{@pA??`@fA??N\??\`@??HH`@^??FFVP??zElD??hBlB??d@^??rB~A??dAh@??zBvCvFzG@B??bAnAJVHb@FlA??@X@d@??Bn@@r@?j@Al@?N??@PDX??F\FL??JVPd@X|@Jb@P^DJ??HH^VHB??LFvBVh@BH@??fAFxAH??n@D??z@BJHp@pAjEhHNV??vArBxAxB??lAhB??FH??NT|@rA??IBEFEFCHCL?R@R??FHDD??FFJ@LABADCHOBO?I??v@hA??fA`BLRDHNV??DH??NR??I@EBEBE@CBA@CDCDCF??ABCH?L?J?FDRFHJHHFN@H@B???B?HCFCJE??DNDR??VhA??Lv@Jj@JbA??@HFRJR??h@x@??b@Z\VvBpA??VPt@j@DH@J@RCVCTAVIl@I~@OzAEl@?V?H?NFNFPNR??z@~@zBrCbCrD??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@t@j@r@h@??T\`@Td@P??FBVHlA\??v@Z??FK??HK??b@?JCFG??FK?M??f@_@ZS^Sb@K^ANBb@FF@??VZJNN\HRJd@B^??o@pBa@nA??EN??AF??mBrE??Sf@Yp@e@fA??K^??K\CH??_@tAGX??EN??Kj@??GPQx@??Kb@Qx@??ADSjASr@G\??Mh@AHGb@Id@??Gj@?b@???B?X???H??Bz@Fp@HdA?BBj@??JbB??BPB\??@TFv@HnADt@??L`CFtA??Dj@PtC??D`A", "ej": {}, "callMode": "update" }],"routeId":1519854390,"callMode":"create"}&sid=0283edc1d38d51d6ac9a5412ecc5fc7d

In json easy to read...

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 0,
        "id": 0,
        "n": "ALMACEN GEPORK",
        "p": {
            "n": "",
            "p": "",
            "p2": "",
            "e": "",
            "a": "GEPORK",
            "v": 0,
            "w": 0,
            "c": "",
            "ut": 600,
            "t": "",
            "d": "",
            "uic": "",
            "cid": "",
            "r": {
                "vt": 1519853530,
                "ndt": 1200,
                "id": 1519853557668,
                "i": 0,
                "m": 0,
                "t": 0
            },
            "aff": "",
            "z": "",
            "ntf": 0,
            "cm": "",
            "tags": ""
        },
        "f": 4,
        "tf": 1519772400,
        "tt": 1519945140,
        "r": 100,
        "y": 41.9815483093,
        "x": 2.29266047478,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 2942,
        "id": 419,
        "n": "CENTRE VET. BERGUEDA SL - 81364005",
        "p": {
            "n": "CENTRE VET. BERGUEDA SL",
            "p": "938220052",
            "p2": "",
            "e": "",
            "a": "",
            "v": "1",
            "w": "0",
            "c": "0",
            "ut": 600,
            "t": "",
            "d": "Tipo documento: ZRES. Horario cliente: 9:00 -14:00 // 16:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364005. Tipo documento : ZRES. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 0 kg.",
            "uic": "81364005",
            "cid": "",
            "r": {
                "vt": 1519857535,
                "ndt": 1200,
                "id": 1519853557668,
                "i": 1,
                "m": 64692,
                "t": 4005
            },
            "aff": "",
            "z": "",
            "ntf": 0,
            "cm": "",
            "pr": ""
        },
        "f": 2,
        "tf": 1519855903,
        "tt": 1519939303,
        "r": 150,
        "y": 42.1011238098,
        "x": 1.84626698494,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "}of_Gqw~LLLd@v@??ANQdACLGFYVuBhBWL??MLG@I@OAKEUMGE??}@rAgAjB??C^CNELOT??q@\a@H]K??TbANf@Ld@l@|@Zt@@ZEd@Mp@Ev@?f@Dp@??@fAGfA??XlABj@Kr@OhAC|@JdB??i@dAe@v@??_@Z_A^??Nz@Pj@Xl@f@fB??RVpAn@pBz@`@Vf@r@f@~@`@lART\HtALLHFJx@rDh@|B??QX[n@E\Hv@VnBFl@@z@??_@d@??UH??MEKAM@ML??x@\??r@R~@V??lFbBbFnB??hDvANF??NF??VJ??~Aj@??bExA??VJ??dGvBzHdD??xUlJ??jGbC??THRH??nEbB??lJtD??tAj@??rFtB??rCdAB@??f@Rz@X??JTLVd@jA??DL??BL??D~@?rDH`FLrBJd@??HpBP`D^~DDb@??Ht@b@zEJbARtBf@vEFj@f@jET~B??Fb@^fCn@dE|@~F??j@nDZvBFb@d@xCFj@Jr@BN??JnAJvARfAJp@Nv@??^pB??Tp@ZfA??X~@FRL^Pd@Nd@P^LTNRTb@d@n@f@j@??j@p@j@r@\h@V^PZLR`A~ARL??fE|IdHpOfAhCl@rA??HR\v@HPN\T`@P\dAxAFHLPFJLP`@j@??d@n@`@d@`@f@^b@Z^b@b@j@f@t@p@t@n@|@p@t@f@tAv@b@Xz@d@??f@TlAj@TH|@XdCp@p@L??hC`@zANdAF@?J@N?N???lABj@@b@A??FFT?Z?T@zC?`A@`A@v@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oCJ{ADk@@y@@mA@q@?qA@wA@eBAoA?}@?aC@{@?u@?o@?o@@_DBuDFgBByAD{AD??_@@kADw@DM???{@DI?sBJcADyBLg@Bu@D]@[B??mBJaBJqBJg@B??s@Be@B??cAFw@DoEVqBJ??K???y@F}CPyAH}DRcBH}@FsAFuAHaBJiBJeAFWBQBO@SD[FWDWF[HYJYHQHYJUJSJa@R_@TSLGD_@VUP]X[X]^WX[`@IJ??OR[b@MT??QX??U\KREFEJ??Wh@a@`A[v@EJ??i@tAe@nA{@xBu@nB{@xBu@pBk@vAg@nAKT??q@`BiAhC_ArB}@fBa@z@cAhBgAfBw@pA{@rAoAfBeAzAeArAs@z@wA`BqAxA{@|@w@t@k@h@{@x@{@z@o@p@q@r@q@v@c@b@WTUPa@VMHOHMDMD??IBOFg@L[FaAP??u@J_@HE@_@HYJUFYJ??_@NC@QJ??o@ZUNQJg@^_@ZQNYRg@b@??[TYRYRKHULSHWJ[J_@HWD??WD_@BU???g@?QAMAQCc@E_@Eo@I??mAM??[CQAg@AY?S???m@BWBc@D]D_@Hc@H[HWF??OB??{Bd@WP??u@H??UBeAJWBUAW@??TLPD??b@BzA@p@CR@V@TBTBXFXJVH??D`@@FBFlCpI\dA??Ph@??GZAP@d@??Wp@[fA??c@jAAR??e@f@??SZ??oCnEw@bAu@x@GB??u@ZoBp@OF??uBn@??CICCICG@??IBCBCHADAD??MDQDIBMDMF??oA|@??ECEAIAG?G@GBEDEDEHCHAH?L???F?H@B??cElC??eAqB??aBwC",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 2943,
        "id": 423,
        "n": "CABALL TORRUELLA, EVA - 81364018",
        "p": {
            "n": "CABALL TORRUELLA, EVA",
            "p": "973481503",
            "p2": "",
            "e": "",
            "a": "",
            "v": "1",
            "w": "1.32",
            "c": "0",
            "ut": 600,
            "t": "",
            "d": "Tipo documento: ZTAX. Horario cliente: 9:00 -13:00 // 17:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364018. Tipo documento : ZTAX. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 1.32 kg.",
            "uic": "81364018",
            "cid": "",
            "r": {
                "vt": 1519860050,
                "ndt": 1200,
                "id": 1519853557668,
                "i": 2,
                "m": 41650,
                "t": 2515
            },
            "aff": "",
            "z": "",
            "ntf": 0,
            "cm": "",
            "pr": ""
        },
        "f": 2,
        "tf": 1519855903,
        "tt": 1519939303,
        "r": 150,
        "y": 41.9939002991,
        "x": 1.52473497391,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 5,
        "st": 0,
        "cnm": 0,
        "rp": "uz}_GorgJS]??Wh@ERAV@\@`@B\C`@Eh@Gb@KZ??H^??{@pA??`@fA??N\??\`@??HH`@^??FFVP??zElD??hBlB??d@^??rB~A??dAh@??zBvCvFzG@B??bAnAJVHb@FlA??@X@d@??Bn@@r@?j@Al@?N??@PDX??F\FL??JVPd@X|@Jb@P^DJ??HH^VHB??LFvBVh@BH@??fAFxAH??n@D??z@BJHp@pAjEhHNV??vArBxAxB??lAhB??FH??NT|@rA??IBEFEFCHCL?R@R??FHDD??FFJ@LABADCHOBO?I??v@hA??fA`BLRDHNV??DH??NR??I@EBEBE@CBA@CDCDCF??ABCH?L?J?FDRFHJHHFN@H@B???B?HCFCJE??DNDR??VhA??Lv@Jj@JbA??@HFRJR??h@x@??b@Z\VvBpA??VPt@j@DH@J@RCVCTAVIl@I~@OzAEl@?V?H?NFNFPNR??z@~@zBrCbCrD??n@p@VBR?V?t@G~AK`AEn@Bf@JlAd@vAl@`A^??h@T??p@Xp@ZRLRRLTLRLZ??Nl@Df@Bl@??@|ADzABlB?zA??@D?^?`@??QXa@j@OL??ED[^KTET??DVJl@FP??FRRT??JN??LDVFX@l@@hA@h@@ZBVDTJ`@TfBnAXPXJx@X??r@J??dEt@`Cd@PFDBNNXb@zAdCZ`@PVVP??PJd@Lb@FbBPVDLFpCvAh@Z??rAx@pBlAlD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CFtA??Dj@PtC??D`A",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1519854390,
    "callMode": "create"
} & sid = 0283e dc1d38d51d6ac9a5412ecc5fc7d

I have used console of  web navigator to see how sdk is used in logistics module...I dont see any error relevant, sure there is one but impossible to detect..

Any idea?

Thank you in advamce

8

Error when creating route with SDK

Re: Error when creating route with SDK

Hi another time!

I found mistake in your json data( routeId must be equal route_id in orders ( property p.r.id ) )

I created route by json:
(only replace route_id, resource_id, order_id, uid, unit_id)

{
"itemId": resource_id,
"orders": [{
    "uid": 0,
    "id": 0,
    "n": "ALMACEN GEPORK",
    "p": {
        "n": "",
        "p": "",
        "p2": "",
        "e": "",
        "a": "GEPORK",
        "v": 0,
        "w": 0,
        "c": "",
        "ut": 600,
        "t": "",
        "d": "",
        "uic": "",
        "cid": "",
        "r": {
            "vt": 1519853530,
            "ndt": 1200,
            "id": route_id,
            "i": 0,
            "m": 0,
            "t": 0
        },
        "aff": "",
        "z": "",
        "ntf": 0,
        "cm": "",
        "tags": ""
    },
    "f": 4,
    "tf": 1519772400,
    "tt": 1519945140,
    "r": 100,
    "y": 41.9815483093,
    "x": 2.29266047478,
    "u": unit_id,
    "s": 0,
    "sf": 0,
    "trt": 3600,
    "st": 0,
    "cnm": 0,
    "rp": "",
    "ej": {},
    "callMode": "create"
}, {
    "uid": 0,
    "id": 0,
    "n": "CENTRE VET. BERGUEDA SL - 81364005",
    "p": {
        "n": "CENTRE VET. BERGUEDA SL",
        "p": "938220052",
        "p2": "",
        "e": "",
        "a": "",
        "v": "1",
        "w": "0",
        "c": "0",
        "ut": 600,
        "t": "",
        "d": "Tipo documento: ZRES. Horario cliente: 9:00 -14:00 // 16:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364005. Tipo documento : ZRES. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 0 kg.",
        "uic": "81364005",
        "cid": "",
        "r": {
            "vt": 1519857535,
            "ndt": 1200,
            "id": route_id,
            "i": 1,
            "m": 64692,
            "t": 4005
        },
        "aff": "",
        "z": "",
        "ntf": 0,
        "cm": "",
        "pr": ""
    },
    "f": 2,
    "tf": 1519855903,
    "tt": 1519939303,
    "r": 150,
    "y": 42.1011238098,
    "x": 1.84626698494,
    "u": unit_id,
    "s": 0,
    "sf": 0,
    "trt": 5,
    "st": 0,
    "cnm": 0,
    "rp": "",
    "ej": {},
    "callMode": "create"
}, {
    "uid": 0,
    "id": 0,
    "n": "CABALL TORRUELLA, EVA - 81364018",
    "p": {
        "n": "CABALL TORRUELLA, EVA",
        "p": "973481503",
        "p2": "",
        "e": "",
        "a": "",
        "v": "1",
        "w": "1.32",
        "c": "0",
        "ut": 600,
        "t": "",
        "d": "Tipo documento: ZTAX. Horario cliente: 9:00 -13:00 // 17:00 -20:00. Cobrar en efectivo 0 €;. Num documento: 81364018. Tipo documento : ZTAX. Total bultos: 1. Bultos M: 1. Bultos P: 0. Bultos G: 0. Bultos N: 0. Palets: 0. Palets Gurb: 0. Peso: 1.32 kg.",
        "uic": "81364018",
        "cid": "",
        "r": {
            "vt": 1519860050,
            "ndt": 1200,
            "id": route_id,
            "i": 2,
            "m": 41650,
            "t": 2515
        },
        "aff": "",
        "z": "",
        "ntf": 0,
        "cm": "",
        "pr": ""
    },
    "f": 2,
    "tf": 1519855903,
    "tt": 1519939303,
    "r": 150,
    "y": 41.9939002991,
    "x": 1.52473497391,
    "u": unit_id,
    "s": 0,
    "sf": 0,
    "trt": 5,
    "st": 0,
    "cnm": 0,
    "rp": "",
    "ej": {},
    "callMode": "create"
}],
"routeId": route_id,
"callMode": "create"
}

I'll hope this help you.

Kind Regards, Gurtam Team

Команда LABS
9

Error when creating route with SDK

Re: Error when creating route with SDK

Hi

I still cannot achieve to make it working. I have checked

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 3084,
        "id": 605,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "r": {
                "i": 1,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1520245498,
        "tt": 1520328898,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3085,
        "id": 606,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 2,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1520245498,
        "tt": 1520328898,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3086,
        "id": 607,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 3,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1520245500,
        "tt": 1520328900,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3087,
        "id": 609,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "r": {
                "i": 4,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1520245500,
        "tt": 1520328900,
        "r": 150,
        "y": 41.7391905,
        "x": 1.8334712,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3088,
        "id": 610,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "r": {
                "i": 5,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1520245500,
        "tt": 1520328900,
        "r": 150,
        "y": 41.7531890869,
        "x": 1.86412000656,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3089,
        "id": 614,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 6,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1520245501,
        "tt": 1520328901,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3090,
        "id": 615,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 7,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1520245501,
        "tt": 1520328901,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3091,
        "id": 616,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "r": {
                "i": 8,
                "id": 1520242497831,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1520245501,
        "tt": 1520328901,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1520242497831,
    "callMode": "create"
}

What is bad?? This is confusing me a lot

10

Error when creating route with SDK

(edited by sets 05/03/2018 14:43:28)

Re: Error when creating route with SDK

Hello, alexismr

i replaced callMode from update to create and uid and id = 0 for orders, then i got and saved route.
May be you made mistake
You calling {callMode :update} only if exist the order ( If you created order earlier with id 35 you can update), but if you want create orders in this request, just write {callMode: 'create'}


Kind Regards, Gurtam Team

Команда LABS
11

Error when creating route with SDK

Re: Error when creating route with SDK

I have tested both options:

A) update indicating id  and uid order detail

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 3116,
        "id": 617,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "r": {
                "i": 1,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1520263784,
        "tt": 1520347184,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3117,
        "id": 618,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 2,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1520263784,
        "tt": 1520347184,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3118,
        "id": 619,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 3,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1520263785,
        "tt": 1520347185,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3119,
        "id": 620,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "r": {
                "i": 4,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1520263786,
        "tt": 1520347186,
        "r": 150,
        "y": 41.7391905,
        "x": 1.8334712,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3120,
        "id": 621,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "r": {
                "i": 5,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1520263786,
        "tt": 1520347186,
        "r": 150,
        "y": 41.7531890869,
        "x": 1.86412000656,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3121,
        "id": 625,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 6,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1520263786,
        "tt": 1520347186,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3122,
        "id": 626,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 7,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1520263787,
        "tt": 1520347187,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }, {
        "uid": 3123,
        "id": 627,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "r": {
                "i": 8,
                "id": 1520260783349,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1520263787,
        "tt": 1520347187,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "update"
    }],
    "routeId": 1520260783349,
    "callMode": "create"
}

B) create without indicating id and uid order detail

params = {
    "itemId": 13635918,
    "orders": [{
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CENTRE+VET.+BERGUEDA+SL",
            "p": "938220052",
            "e": "",
            "a": "",
            "r": {
                "i": 1,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0",
            "c": "0",
            "d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
            "uic": "81364005"
        },
        "f": 2,
        "tf": 1520263688,
        "tt": 1520347088,
        "r": 150,
        "y": 42.101124,
        "x": 1.846267,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 2,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "1.32",
            "c": "0",
            "d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
            "uic": "81364018"
        },
        "f": 2,
        "tf": 1520263688,
        "tt": 1520347088,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "CABALL+TORRUELLA%2C+EVA",
            "p": "973481503",
            "e": "",
            "a": "",
            "r": {
                "i": 3,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "3",
            "w": "3.7",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
            "uic": "81364135"
        },
        "f": 2,
        "tf": 1520263689,
        "tt": 1520347089,
        "r": 150,
        "y": 41.9939,
        "x": 1.524735,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "FERES+VETERINARIS+S.L.P",
            "p": "938742798",
            "e": "",
            "a": "",
            "r": {
                "i": 4,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "4",
            "w": "43",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
            "uic": "81364136"
        },
        "f": 2,
        "tf": 1520263689,
        "tt": 1520347089,
        "r": 150,
        "y": 41.7391905,
        "x": 1.8334712,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
            "p": "938788063%2F615...",
            "e": "",
            "a": "",
            "r": {
                "i": 5,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.87",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
            "uic": "81364137"
        },
        "f": 2,
        "tf": 1520263690,
        "tt": 1520347090,
        "r": 150,
        "y": 41.7531890869,
        "x": 1.86412000656,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 6,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "1.85",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
            "uic": "81364138"
        },
        "f": 2,
        "tf": 1520263691,
        "tt": 1520347091,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "VETERINARIS+DE+CARDONA+%28CLINIC",
            "p": "938682024%2F%2F93...",
            "e": "",
            "a": "",
            "r": {
                "i": 7,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "1",
            "w": "0.03",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
            "uic": "81364139"
        },
        "f": 2,
        "tf": 1520263691,
        "tt": 1520347091,
        "r": 150,
        "y": 41.8298068,
        "x": 1.7503423,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }, {
        "uid": 0,
        "id": 0,
        "n": "A1",
        "p": {
            "pr": "",
            "n": "%2AVETER+BAGES+S.L.",
            "p": "938746057",
            "e": "",
            "a": "",
            "r": {
                "i": 8,
                "id": 1520260687823,
                "m": 0,
                "ndt": 60,
                "t": 0,
                "vt": 1519790400
            },
            "v": "2",
            "w": "2.05",
            "c": "0",
            "d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
            "uic": "81364140"
        },
        "f": 2,
        "tf": 1520263692,
        "tt": 1520347092,
        "r": 150,
        "y": 41.720978,
        "x": 1.846465,
        "u": 13760110,
        "s": 0,
        "sf": 0,
        "trt": 3600,
        "st": 0,
        "cnm": 0,
        "rp": "",
        "ej": {},
        "callMode": "create"
    }],
    "routeId": 1520260687823,
    "callMode": "create"
}

Please note that I firstly create orders correctly (tested, appears in logistics) and I optimice order list (tested, I receive list of orders with their position in the route), so the last point is create the route with the order list generated.


I understand that "update" should be the method used.

Could you please check my json? Do you appreciate something bad?

12

Error when creating route with SDK

Re: Error when creating route with SDK

May be the problem is with "+" signs. They should be encoded to %2B.

Head of Wialon Local Department
Gurtam
13

Error when creating route with SDK

(edited by sets 06/03/2018 12:06:50)

Re: Error when creating route with SDK

if you have access to logistics, you can open dev tools (tab network) and you'll see which datas send to server.
I think you put incorrect orders id and uid.

Команда LABS
14

Error when creating route with SDK

Re: Error when creating route with SDK

Hi Sets.

We have been checking newtor tab dev tools since the first order we created. Please clarify us what to do, we are not seeing errors in the way we are doing the  process and we are having a customer angry already with this.

We want to develop using your sdk, but we need to have complete support when there is points problems like this

Could you provide me an email and we sent you our code...probably we could solve it fast then

15

Error when creating route with SDK

Re: Error when creating route with SDK

Hi alexismr

We realize that our SDK sometimes very confusing and trying to do all possible to help our partners.

I wrote small sample for you using Wialon SDK JS
http://jsbin.com/tufosu/4/edit?js,console,output It uses demo account and 100% works, click button and check console

To customize it you can should 3 variables (ctrl+F): TOKEN, unitId and resourceId

What I've done: just copied your JSON from one previous post and changed values for routeId and unitId. So check unitId, maybe you have no access to it

PS we have holidays until Monday

16

Error when creating route with SDK

Re: Error when creating route with SDK

Thank you, I am ging to check it now and I will inform you asap. In case I detect the error I will inform here in order to allow other developers to have the error detected also

17

Error when creating route with SDK

Re: Error when creating route with SDK

Hi

I still get an error but your example was very clarification (but I am doing it using php)

The fact is: if in your js code I modify unit id, token and I paste my orders array...it works! but in my code not

I paste you my code, probably you can help me, because it must be a little point of error:

$route = json_decode(file_get_contents('http://hst-api.wialon.com/wialon/ajax.html?svc=order/route_update&params={"itemId":'.$itemid.',"orders":['.$pedidosruta2.'],"routeId":'.$idruta.',"callMode":"create"}&sid='.$eid.''),true); 

real example that returns error:

http://hst-api.wialon.com/wialon/ajax.html?svc=order/route_update&params={"itemId":13635918,"orders":[{"uid": 3450,"id": 671,"n": "A1","p": {"pr":"","n": "CENTRE+VET.+BERGUEDA+SL","p": "938220052","e": "","a": "","r":{"i":1,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "1","w": "0","c": "0","d": "AA","uic": "81364005"},"f": 2,"tf": 1520608906,"tt": 1520692306,"r": 150,"y": 42.101124,"x": 1.846267,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3451,"id": 687,"n": "A1","p": {"pr":"","n": "CABALL+TORRUELLA%2C+EVA","p": "973481503","e": "","a": "","r":{"i":2,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "1","w": "1.32","c": "0","d": "AA","uic": "81364018"},"f": 2,"tf": 1520608907,"tt": 1520692307,"r": 150,"y": 41.9939,"x": 1.524735,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3452,"id": 688,"n": "A1","p": {"pr":"","n": "CABALL+TORRUELLA%2C+EVA","p": "973481503","e": "","a": "","r":{"i":3,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "3","w": "3.7","c": "0","d": "AA","uic": "81364135"},"f": 2,"tf": 1520608909,"tt": 1520692309,"r": 150,"y": 41.9939,"x": 1.524735,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3453,"id": 690,"n": "A1","p": {"pr":"","n": "FERES+VETERINARIS+S.L.P","p": "938742798","e": "","a": "","r":{"i":4,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "4","w": "43","c": "0","d": "AA","uic": "81364136"},"f": 2,"tf": 1520608909,"tt": 1520692309,"r": 150,"y": 41.7391905,"x": 1.8334712,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3454,"id": 691,"n": "A1","p": {"pr":"","n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29","p": "938788063%2F615...","e": "","a": "","r":{"i":5,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "2","w": "1.87","c": "0","d": "AA","uic": "81364137"},"f": 2,"tf": 1520608909,"tt": 1520692309,"r": 150,"y": 41.750709,"x": 1.873567,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3455,"id": 692,"n": "A1","p": {"pr":"","n": "VETERINARIS+DE+CARDONA+%28BOTIGA","p": "938682024%2F%2F93...","e": "","a": "","r":{"i":6,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "2","w": "1.85","c": "0","d": "AA","uic": "81364138"},"f": 2,"tf": 1520608910,"tt": 1520692310,"r": 150,"y": 41.8298068,"x": 1.7503423,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3456,"id": 696,"n": "A1","p": {"pr":"","n": "VETERINARIS+DE+CARDONA+%28CLINIC","p": "938682024%2F%2F93...","e": "","a": "","r":{"i":7,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "1","w": "0.03","c": "0","d": "AA","uic": "81364139"},"f": 2,"tf": 1520608911,"tt": 1520692311,"r": 150,"y": 41.8298068,"x": 1.7503423,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"},{"uid": 3457,"id": 697,"n": "A1","p": {"pr":"","n": "%2AVETER+BAGES+S.L.","p": "938746057","e": "","a": "","r":{"i":8,"id":1520605906525,"m":0,"ndt":60,"t":0,"vt":1519790400}, "v": "2","w": "2.05","c": "0","d": "AA","uic": "81364140"},"f": 2,"tf": 1520608911,"tt": 1520692311,"r": 150,"y": 41.720978,"x": 1.846465,"u": 13760110,"s": 0,"sf": 0,"trt": 3600,"st": 0,"cnm": 0,"rp": "","ej": {},"callMode": "update"}],"routeId":1520605906525,"callMode":"create"}&sid=02cdb65194af767360e3d9c627828954

I think it cannot be caused by the part orders[], as orders psted in your example where working fine...do you see any error on my code?

18

Error when creating route with SDK

Re: Error when creating route with SDK

Hi!!! News...

I have checked that If I paste the code in navigator, it returns correct answer and route is generated BUT....

If I use the code generated like this in php:

$route = json_decode(file_get_contents('http://hst-api.wialon.com/wialon/ajax.html?svc=order/route_update&params={"itemId":'.$itemid.',"orders":['.$pedidosruta2.'],"routeId":'.$idruta.',"callMode":"create"}&sid='.$eid.''),true); 

So, it is file_get_contents or json_decode is not wokring fine?? Could it be related with the longitude of text?

19

Error when creating route with SDK

Re: Error when creating route with SDK

Hi

Now its pretty clear that problem in your PHP code
I think file_get_contents is not best method to send request. You can try this (it's core/search_item but it can be modified easily)

// search item by id
    $params = array(
        'id' => $unitId,
        'flags' => 0x8
    );

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url.'/wialon/ajax.html?svc=core/search_item&sid='.$sid);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, 'params='.json_encode($params));
    $out = curl_exec($ch);
    curl_close($ch);
    $out = json_decode($out, true);
20

Error when creating route with SDK

Re: Error when creating route with SDK

Hello,

We had similar issues with the routing optimization. We decided to build our own based on Google's API.

Regards,

OMC