| Re: How can I overcome the limitations of "Avoid Area&q
Hello i have got the same problem. I need to avoid my route to go trough a particular road but i don't want to avoid the crossroads between this road and other roads.
I couldn't find any solution at the moment. I can't think about a routine that can "decide" where to add a waypoint as you did in your example.
Would it be so hard for ms-developers to patch the avoid function, to let it be used even in the middle of roads? Maybe it depends on the engine and it's more complicated than i suppose..
But.. suppose that we can access the database of mappoint and we can change the road type. It would be possible to temporarly change that arc of the road to a boat path (crazy but maybe the engine doesn't check if a boat path is on the sea (why should?)), then we could change the preferences to avoid boats, and calculate.. it would avoid that exact arc of road..
We could even write a routine to do this automatically at the intersection of avoided shapes and roads. Maybe there is just a byte to write to change that road's arc type.
The big problem is accessing the mappoint database in the right point after the change. Suggestions and help on the mappoint db accessibility (maybe using third parts' software/ocx) are appreciated.
[quote="Anthony_Hunt"]We have been trying to use the “avoid” function
and it just isn’t suitable simply closing junctions. If we are calculating a route where an 11’6” bridge is halfway down the road, the “avoid” should stop the route travelling down that section of the road, but if we set the “avoid” on the next or previous junction, the route fails because this closes alternative roads as well. (because all four roads leading to the junction are made impassable) |