How to implement a nogo area permanently in android

100 views
Skip to first unread message

Wolfgang Stöhler

unread,
Mar 16, 2023, 5:29:48 AM3/16/23
to OSM Android bikerouting
Since recently there is a driving ban for old diesel cars in Munich. 
I would like to create a nogo area for my car:
<wpt lat="48.141441" lon="11.567093"><name>nogo5000 Munich</name></wpt>
 
It works in brouter.de if the URL contains &nogos=11.567093,48.141441,5000

Now I read that this waypoint can be placed as a gpx file in a specific android folder: 
see https://github.com/abrensch/brouter/issues/312#issuecomment-905270043

I tried both ../Android/media/btools.routingapp/import and ../Android/media/btools.routingapp/brouter/import.

Unfortunately it does not work - what am I doing wrong? Any idea?
Thanks a lot in advance!

Wolfgang Stöhler

unread,
Mar 16, 2023, 6:25:55 AM3/16/23
to OSM Android bikerouting
My "nogo5000 Munich.gpx" file:

<?xml version="1.0" encoding="UTF-8"?>
<gpx
 xmlns="http://www.topografix.com/GPX/1/1"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
 version="1.1"
 creator="BRouter-Web 0.18.1">

 <wpt lat="48.141441" lon="11.567093"><name>nogo5000 Munich</name></wpt>
</gpx>

A. Fischer

unread,
Mar 16, 2023, 7:18:29 AM3/16/23
to OSM Android bikerouting
I can confirm your trouble.
So I opened an issue in BRouter git. Please see there for the next steps.

A. Fischer

unread,
Mar 16, 2023, 9:33:15 AM3/16/23
to OSM Android bikerouting
Meanwhile you could use an area gpx like this.

Copy it to the .../import/tracks' folder.
And get this result:

.Screenshot_20230316-142631.png


nogo_Munich_A2303161416.gpx

Wolfgang Stöhler

unread,
Mar 16, 2023, 3:24:58 PM3/16/23
to OSM Android bikerouting
Yes - it works! (But I don't know why ...)
Thanks a lot! Sure I can live with this solution. 

Now I read #513 - unfortunately a test was negative. Questions: Is my .gpx file (see #2 in this thread) correct? Do I have to re-install BRouter (I'm using 1.6.3 beta)? 
Thanks for education ... ;-) 

Emux

unread,
Mar 16, 2023, 3:29:24 PM3/16/23
to osm-android...@googlegroups.com
> Now I read #513 - unfortunately a test was negative.

There is a code change in #513, so we will need a new BRouter apk to work.

--
Emux

Wolfgang Stöhler

unread,
Mar 16, 2023, 3:45:04 PM3/16/23
to OSM Android bikerouting
I thought that - where (and when) can I get this new BRouter apk? 

Emux

unread,
Mar 16, 2023, 3:51:18 PM3/16/23
to osm-android...@googlegroups.com
> where (and when) can I get this new BRouter apk?

We should wait for Axel to summarize the code changes
and see if he can create a new BRouter (Beta) apk for us. :)


I will also inform in Cruiser Discussions if there is anything new to test.

--
Emux

A. Fischer

unread,
Mar 17, 2023, 11:05:21 AM3/17/23
to OSM Android bikerouting
Please hang on for another minute.
The work around has the same problem as the use of an area:
The router will offer a route around the area - as assumed, but if a point is within the area BRouter will still take you to town.
Please see here
I think this is not what you are looking for.

Wolfgang Stöhler

unread,
Mar 17, 2023, 7:44:22 PM3/17/23
to OSM Android bikerouting
That's not quite right - at least not in the Cruiser app. I can put start, destination and destination extensions around the nogo area - everything okay.
 
If I put the next destination extension in the nogo area, an error occurs at the moment: after a "loop" in the app, the new destination is created, but there is no route.

2023-03-18 00.34.00.png      2023-03-18 00.34.08.png

By the way, no recalculation of the route is possible within the prohibited area, only when it is left again. Tested today with the motorcycle.

Personally, I would like the nogo area to be treated similarly to "Avoid highway". If I drive onto the highway, Cruiser navigates me off the highway as fast as possible. And if I place a waypoint on the highway, then it is properly taken into account - despite "Avoid highway".


0709

unread,
Mar 18, 2023, 3:44:46 AM3/18/23
to OSM Android bikerouting

0709

unread,
Mar 18, 2023, 4:07:26 AM3/18/23
to OSM Android bikerouting
@ afisherdev
See the previous link.
"Nogo areas (should imo) work as follows".

If you take the example Munich.
So as BRouter presents it now, it is indeed completely wrong imo.
You can drive right into the centre of Munich without resistance from the Brouterengine.  
The idea is precisely that you should NOT enter the city centre with your Diesel vehicle.  
If, as a driver, you absolutely DO NOT want to follow this access restriction, the manual Beeline (no restrictions) is your ONLY friend to help you cross the border.


Translated with www.DeepL.com/Translator (free version)

Op zaterdag 18 maart 2023 om 08:44:46 UTC+1 schreef 0709:

0709

unread,
Mar 18, 2023, 6:34:27 AM3/18/23
to OSM Android bikerouting
So here I do (kindly) disagree with Wolfgang ;-)
The local resident is well already aware where that zone is.
Someone further away from Munich is less or not at all aware.
That user will not even so think of planning a nogo zone.
Solving this with a Nogo zone is just a 'bricolage' way.
A circular nogo zone, also never fits, because either too small or too big.
A solid solution is only possible with many osm edits and a Brouter that respects the rules according to the vehicle.
The number of new rules being fired is also hard to keep track of and even never up to date.

Willy.

Op zaterdag 18 maart 2023 om 09:07:26 UTC+1 schreef 0709:

A. Fischer

unread,
Mar 18, 2023, 6:44:05 AM3/18/23
to OSM Android bikerouting
Please don't make this more complicated than it needs to be. We have everything we need: Areas as polygon, polyline and a waypoint area with radius.

From the real world:
A few weeks ago we had a bomb disposal in our region. It was exactly these rules:
An area of 1km around, everybody out and nobody in.

Wolfgang Stöhler

unread,
Mar 19, 2023, 3:32:51 AM3/19/23
to OSM Android bikerouting
>  We have everything we need: Areas as polygon, polyline and a waypoint area with radius.

Absolutely right! 
Sorry, I'm a newbie - only know for 3 days that there are nogo areas. And I have to say that a polygon definition is much better than the radius:
2023-03-19 08_05_07-nogo_München_MR _ Kurviger.jpg   2023-03-19 08_19_58-BRouter Web Client.jpg
Works fine in Cruiser! See the attached .gpx file. (Just an extension of the file given to me in this thread.)
Thanks for all your hints. 
nogo_München_MR.gpx

Wolfgang Stöhler

unread,
Mar 21, 2023, 5:40:22 PM3/21/23
to OSM Android bikerouting
In the newest beta version of BRouter the nogo waypoint with radius is correctly integrated. Thanks for fixing it!
Reply all
Reply to author
Forward
0 new messages