With a little hindsight here is a small adaptation so that the ux only interferes with the search for parking lots when the truck mode is activated at startup,
restarting with another type will restore normal operation, however changing the vehicle in use will require a restart of igo to change the filtering status
Quote:
function sc_FindParking()
local park = "Parking"
if MODEL.route.vehicule_type == 3 then
park = park .. "\001Rest_Area"
end
local search_root = MODEL.poi.find_group(park)
if search_root == -1 then
search_root = MODEL.poi.find_group("Automotive\001"..park)
end
return search_root
end
Please let me know if the expected result is in accordance with the request in the context of operation in truck mode