Avoid unpaved paths?

187 views
Skip to first unread message

derou...@gmail.com

unread,
Jun 15, 2020, 5:33:15 PM6/15/20
to OSM Android bikerouting
Hello,
I'm a big fan of the Brouter-web app, and I use it often. I plan my bike trips with it. Two important features for me is that it can "avoid unsafe" routes and with the uphill cost also can avoid steep hills to climb with the bike. 
One problem is that using a high uphill cost and "avoid unsafe" ticked, the routing algorithm tends to use (forest) paths that may be only suitable by mountainbike, or not suitable to do by bike at all. How can you configure the profile to avoid unpaved paths? 

(and another one that's best to avoid: I'm currently planning a new tour trough Belgium, but the routing algorithm generates a route on a street trough military domain, very dangerous....) 




P Wat

unread,
Jun 15, 2020, 5:56:57 PM6/15/20
to OSM Android bikerouting
Good question - And I dont have an answer.
Having frequently been rouited on tracks which are unpaved or too steep, and on roads which are too busy, I also would be pleased to uderstand how to achieve what "derou .." asks.
Paul W

Poutnik Fornntp

unread,
Jun 16, 2020, 1:47:31 AM6/16/20
to derou...@gmail.com, OSM Android bikerouting
For avoiding unpaved, you may want to try not yet published version of my profile ( attachment ), where you can set assign avoid_unpaved = 1/true and upload it to Brouter web as external profile. Users of LocusMap can directly use Avoid unpaved flag within profile configuration dialogue.

Alternatively, using the web built-in profiles, you can modify them:

instead of 
assign costfactor = <expression>
put there
assign costfactor = 
if isunpaved then  X else <expression>

where X is costfactor you want to assign to unpaved roads.
X=9999 totally forbids using unpaved roads, but may lead to unexpected results of big detour due few unpaved meters, or routing failure due inability to create the route.
I suggest X=10-50 what is high enough penalty to use unpaved roads as the last option. ( 900m or 4.9 km of perfect road still takes priority over 100 m of unpaved one.).

For military areas, all depends on how the access for such roads is mapped in OSM.
If there is no restriction, BRouter has no idea it should avoid such a road. The user has to avoid it by his own, what is easy. BTW, the is few public roads across military area near my home and they are not dangerous.


Dne 15. června 2020 23:33:18 derou...@gmail.com napsal:

--
You received this message because you are subscribed to the Google Groups "OSM Android bikerouting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-android-biker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osm-android-bikerouting/cf1cf695-7850-46ee-bd60-cfe4ed333c73o%40googlegroups.com.

Trekking-dry.brf

Poutnik Fornntp

unread,
Jun 16, 2020, 2:54:07 AM6/16/20
to derou...@gmail.com, OSM Android bikerouting
Another, rather softer alternative, is using my profile with negative values of MTB_factor ( - 0.5 ..-2.0 ) .

Dne 16. června 2020 7:47:26 Poutnik Fornntp <poutni...@gmail.com> napsal:

majkaz

unread,
Jun 16, 2020, 7:40:46 AM6/16/20
to OSM Android bikerouting
Routing through military area depends, as already said. If it is really danger area, there should be access=no in OSM. Not sure, if BRouter takes in account relations, if this should be the case. 

If you simply want to avoid it, the easiest way is to set a nogo area.

Majka

Poutnik Fornntp

unread,
Jun 16, 2020, 8:18:04 AM6/16/20
to majkaz, OSM Android bikerouting
BRouter generally does not consider relations,
with few exceptions like turning restrictions and cycling/hiking routes.

Relations of cycle routes or hiking routes are converted in Brouter rd5 routing files to way context pseudotags like  route_bicycle_ncn=yes which do not exist in OSM.

Dne 16. června 2020 13:40:48 majkaz <majk...@gmail.com> napsal:

--
You received this message because you are subscribed to the Google Groups "OSM Android bikerouting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-android-biker...@googlegroups.com.

Jozef Matejička

unread,
Jun 16, 2020, 11:35:17 AM6/16/20
to majkaz, OSM Android bikerouting
Are there relations restricting access?
BRouter uses a subset of data from OSM. See http://brouter.de/brouter/profiles2/lookups.dat for available data. No military area there.

Jozef

Poutnik Fornntp

unread,
Jun 16, 2020, 11:49:26 AM6/16/20
to Jozef Matejička, majkaz, OSM Android bikerouting
Note that lookups.dat contains only subsets of way tags and node tags, but no relation tags.

As mentioned earlier, probably the best current workaround would be using the nogo feature of BRouter app(LocusMap or OSMAnd nogo favourites ) or BRouter-web.

Dne 16. června 2020 17:35:17 Jozef Matejička <matej...@gmail.com> napsal:

Andrew Heard

unread,
Jun 16, 2020, 6:18:52 PM6/16/20
to OSM Android bikerouting
If you are a Locus Map (with BRouter) user, another strategy I use, is to obtain & set the theme to Desert (www.maiwolf.de) which is the best for clearly displaying unsealed roads.

frdt...@gmail.com

unread,
Aug 12, 2025, 3:10:39 AMAug 12
to OSM Android bikerouting
Hello,

As of 2025, is there a standard way to tell BRouter to ignore unpaved ways and stick to paved roads? This has an impact when touring with a cargo bike.

I see there are multiple servers running BRouter. Do they run different versions of the application, which might impact what features they support?

Thank you.

Reply all
Reply to author
Forward
0 new messages