Тема: Get route associated with a unit
Hello,
I was trying a lot different options to get to which route is associated with a unit, but I can not find a way to solve my problem.
Can someone guide me please?
My goal is to know when a unit belongs to the 2DIR route or to route 3-1 (of somes routes, we have six routes), as seen in the image.
-------
I've tried the Nimbus API, but I can not get the unit associated with a route.
I'm testing the remote API in different ways and I can not get it either, now I'm trying this way:
data = {
"spec": {
"itemsType": "avl_unit",
"propValueMask": "*",
"propName": "sys_name",
"sortType": "sys_name"
},
"force": 1,
"flags": 1 | 65536,
"from": 0,
"to": 0
}
Based on the recommendation of another post https://forum.gurtam.com/viewtopic.php?id=5390
But it's not working.
Any advice will be welcome
Thank you