Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with road bike/fastbike profile #479

Open
tbsmark86 opened this issue Nov 3, 2022 · 13 comments
Open

Problems with road bike/fastbike profile #479

tbsmark86 opened this issue Nov 3, 2022 · 13 comments
Labels

Comments

@tbsmark86
Copy link

Problem a)
Routing in Norway along the E6. This is marked as highway=trunk. Problem is in norther parts roads are scares detours are long and may require ferries and traffic on this 'trunk' road is actually low.
This case has a detour of about 320km while the trekking profile simply uses the 'bad' trunk road. In this specific case the road is part of EuroVelo 11.
Road Bike: 406km
Trekking Bike: 82km

Cost is for example:
cost: 10000 tags: highway=trunk surface=asphalt route_bicycle_icn=yes

Idea:

-  switch or highway=trunk highway=trunk_link          switch allow_motorways 1.5 10
+  switch or highway=trunk highway=trunk_link          switch or allow_motorways any_cycleroute 1.5 4

Problem b)
Avoiding of highway=path independent cycleways.
Here an example of a very iconic cyclepath in Berlin (so called "Krone").
Given that result its hard to argue with anyone why he should use brouter instead of say komoot. It's just outright stupid.
Road Bike: 15km passing through city
Trekking Bike: 13.5km using cyclepath

Problem is that it's marked as highway=path:
cost: 2000 tags: highway=path surface=asphalt foot=designated bicycle=designated smoothness=excellent
Looking at the OSM wiki for highway value that seems correct because it's (almost) exclusively for cycling/walking. But in this "path" is really wide (between 1 and 2 car lanes).

My Idea:

+assign isgoodpaved or surface=asphalt or surface=concrete surface=paving_stones
+assign isverygoodpaved and isgoodpaved or smoothness=excellent smoothness=good

-   switch or bicycle=designated bicycle_road=yes 2.0
-   switch ispaved 2.0 100.0
+   switch or bicycle=designated bicycle_road=yes 
+     switch isverygoodpaved 1.1
+     switch isgoodpaved 1.3
+     switch ispaved 1.7
+     2.0
+   switch isgoodpaved 1.7 switch ispaved 2.0 100.0

And similar rules for highway=service and other.

Here are two more similar but less iconic example. Really fast road bikes users (35kph+) might actually prefer the current result:
Road Bike: 9.4km
Trekking Bike: 8.9km
This is a new build cycle path on an old railway track.

Road Bike: 14.5km
Trekking Bike: 14.3km
In this case its a service way along the canal part, part of EuroVelo 7 and others.

P.s. why are there 5 options in fastbike.brf that are not used at all? (allow_steps, allow_ferries, ignore_cycleroutes, stick_to_cycleroutes, avoid_unsafe)

@EssBee59
Copy link
Collaborator

EssBee59 commented Nov 4, 2022

hello tbsmark,

to your "problem b":
If you ask 10 fastbikers which route they prefer, you will at least get 5 different responses ....
(I had also long discussions with my friends about using or not pathes)

But using Brouter you are able to create the exact profile you prefer!
I did so and created my own profile "fastbile very low traffic". On my test instance you can have a look at the calculated route in your examples.
http://brouter.de/essbee/#map=12/52.4657/13.2313/osm-mapnik-german_style,route-quality&lonlats=13.295051,52.506818;13.175187,52.420115

(you can further adapt the option "consider_traffic" in the profile)

hope it helps

@tbsmark86
Copy link
Author

Yes I know you can create your own profile. But it's rather impractical unless you also have your own server running.

It would be nice to have a sane default.

I'am adding Problem c)
The costs of the road bike profile tend to use the road instead of the cyclingpath along the road - even if it's mandatory by law to use the cyclepath.
In theory the road should be tagged bicycle=use_sidepath. Not sure how correct the OSM data is starting with the fact that different people might use the law different.
The "Krone" example from b) contains such bit on the current fastbike profile:
Motorway Junction you have to use the tunnel here.

Interesting: If i use bicycle=use_sidepath in bikeaccess as a 'no' the fastbike profile creates an even worse route with 1km of bad cobbles. Instead of using the tunnel which is ok aside from the extra climbing.
Reason is - again - highway=path with cost of 2000 for the tunnel bit.

It's mostly annoying because your gps device might start beeping that your of the course. But it could also change the route if the cyclepath is particularly bad.

@EssBee59
Copy link
Collaborator

EssBee59 commented Nov 5, 2022

Yes I know you can create your own profile. But it's rather impractical unless you also have your own server running.

No, you do not nead your own server to create a custom profile.
(A current restriction is, you can not easily store/resuse the created profile, but this restriction could be eliminated soon, see nrenner/brouter-web#472 )

As explained, a standard / generic profile is not possible for ALL fastbikers...
Did you test my profile ?
http://brouter.de/essbee/#map=12/52.4657/13.2313/osm-mapnik-german_style,route-quality&lonlats=13.295051,52.506818;13.175187,52.420115

You can also test the profile developped by Marcus (it is installed / available on his server):
https://brouter.m11n.de/#map=12/52.4657/13.2313/osm-mapnik-german_style,route-quality&lonlats=13.295051,52.506818;13.175187,52.420115

@polyscias
Copy link
Contributor

In theory the road should be tagged bicycle=use_sidepath.

If it's indeed mandatory by law to use the cyclepath why do you not edit the OpenStreetMap data yourself?

Things like adding "bicycle=use_sidepath" is pretty simple, open https://www.openstreetmap.org and zoom to the area. Then press the Edit button (left-top) and select the iD editor. Go to Tags and add bicycle=use_sidepath. That will not only benefit you but also others.

Looking at your example, it does not help you indicate you like to start and on the main road and you are using the fastbike profile instead of the Trekking profile.

@tbsmark86
Copy link
Author

why do you not edit the OpenStreetMap data yourself?

Because it's already present in the above example. But neither the fastbike nor the trekking profile do check for it.

Looking at your example, it does not help you indicate you like to start and on the main

Why? Assuming the profile try to create legal routes (does it?) my starting point is perfectly legal. The mandatory cycle path starts 50m later.

As explained, a standard / generic profile is not possible for ALL fastbikers...

Yes. But Is that an excuse to fix a case the 95% will dislike?
A solution might be to use the 'stick_to_cycleroutes' option seeing as it's currently a no-op.

Ok Questions: Are profiles part of this project or are they more like examples and everybody is expected anyway to create their own? In later case my issue is moot.

@polyscias
Copy link
Contributor

polyscias commented Nov 5, 2022

why do you not edit the OpenStreetMap data yourself?

Because it's already present in the above example. But neither the fastbike nor the trekking profile do check for it.

You are 90% correct that bicycle=use_sidepath is already present for the route I just found out but it is missing on these two pieces of road: 385126058 and 912706185

That the fastbike profile does not check for it is maybe an oversight, I do not know if the German DE:241 traffic sign indicates also mandatory for fastbikes. A fastbike is in OSM term's is also no bicycle but more likely a moped.

For the trekking profile, bicycle=use_sidepath is taken into account, see #79 and more in particular here. If I take exactly your route and change the profile to Trekking the route takes the cycleway.

Are profiles part of this project or are they more like examples and everybody is expected anyway to create their own? In later case my issue is moot.

There are some "reference" profiles part of the project but there are quite some other published profiles around:

This last profile has already what you asked for under "Problem a)"

There will be much more unpublished profiles around.

@EssBee59
Copy link
Collaborator

EssBee59 commented Nov 5, 2022

Ok Questions: Are profiles part of this project or are they more like examples and everybody is expected anyway to create their own? In later case my issue is moot.

Hello Tobias,
Again, it is difficult to provide a generic fastbike profile, valid for all countries, for each fastbiker and ... any situation:
As example in Germany a biker have to use an existing cycleway, but if you are in a group of more than 15 bikers, the group can use the road (2 bikers parallel is also allowed)
Hope, you see with this example that you haveto choose or create the right profile for you.

@tbsmark86
Copy link
Author

Ok. I see.

A fastbike is in OSM term's is also no bicycle but more likely a moped.

Really? Well than the label/translation in brouter-web is wrong it says "Road Bike" .

In that case its maybe more of an S-Pedelec (E-Bike upto 45 kph) which has the opposite problem: There are forbidden on cycling paths in Germany.

For the trekking profile, bicycle=use_sidepath is taken into accoun

Sorry missed that.

@tbsmark86 tbsmark86 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2022
@zod
Copy link
Collaborator

zod commented Nov 14, 2022

I'm reopening this because I think your suggestions are valuable and I'd like to clarify a few things from my point of view.

P.s. why are there 5 options in fastbike.brf that are not used at all? (allow_steps, allow_ferries, ignore_cycleroutes, stick_to_cycleroutes, avoid_unsafe)

fastbike.brf is derived from some other profile and hasn't been cleaned up.

Ok Questions: Are profiles part of this project or are they more like examples and everybody is expected anyway to create their own? In later case my issue is moot.

We try to provide profiles that work out of the box for most users. Quite often tweaking parameters causes regressions for other users. If it's possible to improve the profile for some region without unwanted side effects we'll do it.

Of course there are personal preferences and the possibility to tweak a profile to your own preferences can be used by advanced users.

A fastbike is in OSM term's is also no bicycle but more likely a moped.

The comment at the beginning of fastbike.brf is a bit ambiguous as it mentions both roadbike and s-pedelec for which at least in Germany the rules are totally different. The term fastbike is only used by BRouter, it's no English term or used within OSM.

I think fastbike should target roadbike or velomobiles/recumbent bikes. For S-pedelecs it's hard to create a generic profile because the rules are different in each country.

@zod zod reopened this Nov 14, 2022
@EssBee59
Copy link
Collaborator

EssBee59 commented Nov 15, 2022

I think fastbike should target roadbike or velomobiles/recumbent bikes. For S-pedelecs it's hard to create a generic profile because the rules are different in each country.

Hello,

I thought "fastbike" ist in german "Rennrad", in french "velo de course".
(a very fast bike used in competitions with special /short tires which are only usable on asphalt!)

The "fastbikers" very often are in groups underway and as I explained above, special rules apply when the group is at least 16 persons.

@zod
Copy link
Collaborator

zod commented Nov 15, 2022

Not according to some online dictionaries (dict.leo.org, dict.cc) or Wikipedia. It's a term that's specific to BRouter which tries to specify a common profile for several types of fast bikes which share common restrictions.

@tbsmark86
Copy link
Author

Quite often tweaking parameters causes regressions

Well yes that's the problem with highway=path I fear. Therefore my idea with surface=asphalt and smoothness.
Problem with highway=path is that it can be very different in quality and width.

To help understand my complaint b) better here is a Random YT Video of this highway=path.
Of course its really rare to have a highway=path of this quality.
If anybody complains that highway=path is not appropriate ... Well because this is cycling and walking only then according to osm-de wiki that is in correct (as far as I understand the wiki).

Obviously there are also lots of highway=path that are definitely not fastbike and maybe not even trekkingbike even if bicycle=yes - because those might be MTB single trails.

@tbsmark86
Copy link
Author

fastbike.brf is derived from some other profile and hasn't been cleaned up.

Ok, at least two of them i would suggest fixing instead of removing - and without any regression i hope:

-  switch    highway=steps                             1000
-  switch    route=ferry                               5.67
+  switch    highway=steps                             switch allow_steps 40 1000
+  switch    route=ferry                               switch allow_ferries 5.67 10000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants