I have a user command which gets executed everytime a package is loaded onto ASRS. When this happens, I want to calculate the distance of ASRS along the network edge. However, as seen below the function is not returning the distance correctly.
File name is Warehouse_getDistance