Proposal for an algorithm to guide around unexpected road closures
-
In a thread "https://forum.myrouteapp.com/topic/10748/how-to-exclude-short-time-road-blocks-during-navigation/1", there was an intense discussion about the pros and cons of guided detours around unexpected road closures. Some motorcyclists prefer a solution similar to TomTom.

I would like to propose an algorithm that, in my opinion, would enable guided detours around road closures.
The scenario: A motorcyclist is navigating with MRA on a pre-planned route. He encounters a temporary road closure that is not marked on the planning map and is therefore not bypassed.
The task is to create a feature in MRA that guides the rider around the closure, similar to TomTom.
Definitions:
Shaping Point A: the point where the motorcyclist is actually located before the roadblock.
Shaping Point B: the point on the known planned route beyond which a roadblock is suspected.The algorithm could work as follows.
1: The rider stops and selects “Detour around a roadblock” from the navigation menu. There, he enters the length of the expected roadblock (e.g., 10 km).
.
.
2: MRA now automatically adds the two additional shaping points, A and B, to the route. The waypoints along the remainder of the route after Point A to the destination are incremented by 2, since the route now has two more shaping points.
.
.
3: MRA excludes the section between shaping points A and B from the permitted roads—similar to how it handles highways or toll roads to be avoided, etc. To do this, a programming solution must be found that does not rely on the planning map, since this exclusion is not present there.
.
.
4a If a planned shaping point is located on the now-blocked route, it is skipped.
4b: If a planned viapoint is located on the now-blocked route, a warning is issued so that the rider can decide whether to be redirected to that point from B or to skip it.
.
.
5: MRA now calculates a new route segment that leads at least to point B. If the original route is not reached again until further along toward the final destination due to road conditions, shaping point B is skipped during navigation.Of course, I don’t know how this can be implemented programmatically, but that’s what @corjan-meijerink, our mastermind, is here for.
-
All this would be possible without all the hassle of adding extra waypoints

That said it’s not a currently planned feature but it is in my mind after reading the interesting discussions. Quite often those suddenly magically get done (or at least a proof of concept) over a boring weekend
Not making any promises! -
All this would be possible without all the hassle of adding extra waypoints

That said it’s not a currently planned feature but it is in my mind after reading the interesting discussions. Quite often those suddenly magically get done (or at least a proof of concept) over a boring weekend
Not making any promises!OK, thanks for your response.
I just wanted to document an idea I got during a walk with my dog.
Best, Axel
-
OK, thanks for your response.
I just wanted to document an idea I got during a walk with my dog.
Best, Axel
@Axel-Härtl that is definitely appreciated!
-
In a thread "https://forum.myrouteapp.com/topic/10748/how-to-exclude-short-time-road-blocks-during-navigation/1", there was an intense discussion about the pros and cons of guided detours around unexpected road closures. Some motorcyclists prefer a solution similar to TomTom.

I would like to propose an algorithm that, in my opinion, would enable guided detours around road closures.
The scenario: A motorcyclist is navigating with MRA on a pre-planned route. He encounters a temporary road closure that is not marked on the planning map and is therefore not bypassed.
The task is to create a feature in MRA that guides the rider around the closure, similar to TomTom.
Definitions:
Shaping Point A: the point where the motorcyclist is actually located before the roadblock.
Shaping Point B: the point on the known planned route beyond which a roadblock is suspected.The algorithm could work as follows.
1: The rider stops and selects “Detour around a roadblock” from the navigation menu. There, he enters the length of the expected roadblock (e.g., 10 km).
.
.
2: MRA now automatically adds the two additional shaping points, A and B, to the route. The waypoints along the remainder of the route after Point A to the destination are incremented by 2, since the route now has two more shaping points.
.
.
3: MRA excludes the section between shaping points A and B from the permitted roads—similar to how it handles highways or toll roads to be avoided, etc. To do this, a programming solution must be found that does not rely on the planning map, since this exclusion is not present there.
.
.
4a If a planned shaping point is located on the now-blocked route, it is skipped.
4b: If a planned viapoint is located on the now-blocked route, a warning is issued so that the rider can decide whether to be redirected to that point from B or to skip it.
.
.
5: MRA now calculates a new route segment that leads at least to point B. If the original route is not reached again until further along toward the final destination due to road conditions, shaping point B is skipped during navigation.Of course, I don’t know how this can be implemented programmatically, but that’s what @corjan-meijerink, our mastermind, is here for.
@Axel-Härtl I read the discussion carefully and I completely agree with your proposal. Anything that improves MRa is welcome!
-
All this would be possible without all the hassle of adding extra waypoints

That said it’s not a currently planned feature but it is in my mind after reading the interesting discussions. Quite often those suddenly magically get done (or at least a proof of concept) over a boring weekend
Not making any promises!@Corjan-Meijerink Super!!!!
-
As this is a subject close to my heart, I’d like to highlight once again a scenario that has become all too common, where the ability to block an exit on the planned route would be extremely helpful.
You reach a motorway exit that has only just been closed. So you can only continue straight ahead. After a few kilometres, you are diverted at the next opportunity. At that moment, you don’t know whether the app is (incorrectly) rerouting you back or whether it has found a new way back onto the planned route beyond the closure.
That is why it would be so important to be able to mark the closure with a button so that it is excluded from the routing. (Please bear in mind that you are driving on the motorway and cannot stop to fiddle about on the small screen).
This scenario, as well as sudden closures on country roads due to fallen trees, landslides, etc., is unfortunately becoming increasingly common and is no longer the absolute exception.
There are people with a very good sense of direction who don’t need this – for me, it would be a huge help. -
As this is a subject close to my heart, I’d like to highlight once again a scenario that has become all too common, where the ability to block an exit on the planned route would be extremely helpful.
You reach a motorway exit that has only just been closed. So you can only continue straight ahead. After a few kilometres, you are diverted at the next opportunity. At that moment, you don’t know whether the app is (incorrectly) rerouting you back or whether it has found a new way back onto the planned route beyond the closure.
That is why it would be so important to be able to mark the closure with a button so that it is excluded from the routing. (Please bear in mind that you are driving on the motorway and cannot stop to fiddle about on the small screen).
This scenario, as well as sudden closures on country roads due to fallen trees, landslides, etc., is unfortunately becoming increasingly common and is no longer the absolute exception.
There are people with a very good sense of direction who don’t need this – for me, it would be a huge help.Perfect. I totally agree.
In my proposal the usage of shaping point A and B would be as follows.
If you press the button "here is beginning of a closure" shaping point A is automatically set.
If you leave the highway and press "here is end of a closure" shaping point B is automatically set.
The algorithm then excludes the road between A and B from the calculation and continues as I described.
Best, Axel
-
Perfect. I totally agree.
In my proposal the usage of shaping point A and B would be as follows.
If you press the button "here is beginning of a closure" shaping point A is automatically set.
If you leave the highway and press "here is end of a closure" shaping point B is automatically set.
The algorithm then excludes the road between A and B from the calculation and continues as I described.
Best, Axel
@Axel-Härtl Would this prevent the app from trying to reroute via the closed exit?
If I understand your suggestion correctly, only the section from the closed exit (first press of the button) straight ahead until the second press of the button would be blocked.
However, the exit itself (and certainly a few kilometres beyond it) – the road or motorway you actually wanted to take – would need to be blocked. -
Now we are discussing 2 different scenarios? If I understand correctly, we have:
- the road you are driving (following the planned route) is suddenly blocked. So, you need to leave this road - and you need guidance to get back on the planned route
- You are supposed to leave the road you’re driving on – following the planned route. But the exit is suddenly blocked. So you can’t leave this road – and you need guidance to get back on the planned route
-
Yes, there are two scenarios under discussion now.
1: if a planned route is blocked -> the algorithm is decribed in my post #1
.
.
2: by selecting "here is the end of the closure" at the exit of a motorway, shaping point B would not be set on the originally planned route but somewhere else (i.e. at the exit).So in this case the algorithm should navigate to the nearest point of the originally planned route.
Here the rule for skipping a via point between A and the location, where the original route is met again must be implemented as I proposed in post #1
-
@Axel-Härtl
Don't you have those diversion signs in Germany, like we have in the Netherlands, that direct you around the location of the roadworks when there are roadworks somewhere?Or do you mean, for example, roadworks that suddenly appear without clear prior notice?
I get the point about having a button or function in MRA that allows you to bypass roadworks. Last year in Belgium, I experienced 3 or 4 times that roadworks suddenly appeared that hadn't been there a week before my tour. It is annoying, but stopping for a moment and checking how to get from A to B is, in my opinion, perfectly doable.