Repository navigation
Conversation
… severe; rcbike: fix residential&service
|
|
||
| addPushingSection("path"); | ||
|
|
||
| // preferHighwayTags.add("road"); |
There was a problem hiding this comment.
This looks like a temporary change. It should be removed.
There was a problem hiding this comment.
Do you mean the code should be removed or the change should be reverted?
As I wrote in the PR:
I suggest to remove tertiary&unclassified from preferred highways.
Any reason why you would keep them preferred? (if you comment was about this)
The idea was to keep them neutral to reduce artifacts like in #3015. And preferring roads more based on bicycle infrastructure. Note that if there is a secondary vs. tertiary choice then still the tertiary will be picked because of the penalty for secondary.
There was a problem hiding this comment.
I'm fine with the changes. Please remove the currently commented code completely.
| preferHighwayTags.add("road"); | ||
| preferHighwayTags.add("track"); | ||
| preferHighwayTags.add("path"); | ||
|
|
There was a problem hiding this comment.
This looks like a temporary change. It should be removed.
There was a problem hiding this comment.
Same here, please remove the commented code.
| preferHighwayTags.add("tertiary_link"); | ||
| preferHighwayTags.add("residential"); | ||
|
|
||
| // preferHighwayTags.add("road"); |
| preferHighwayTags.add("residential"); | ||
|
|
||
| // preferHighwayTags.add("road"); | ||
| // preferHighwayTags.add("unclassified"); |
There was a problem hiding this comment.
I think we should keep this preference for tertiary, tertiary_link and unclassified the racingbike profile.
| osmWay.setTag("highway", "tertiary"); | ||
| osmWay.setTag("maxspeed", "50"); | ||
| assertPriorityAndSpeed(encodingManager, priorityEnc, speedEnc, parsers, PREFER, 24, osmWay); | ||
| assertPriorityAndSpeed(encodingManager, priorityEnc, speedEnc, parsers, UNCHANGED, 24, osmWay); |
There was a problem hiding this comment.
See my comment in the code section. This should remain PREFER. The same applies for the other changes in this file as well. But the slight improvement for tunnel is OK.
To reduce complexity for #3227 I moved one of the inconsistencies into a separate PR. /cc @ratrun.
In #3015 we reduced priority for tertiary. We should do this for unclassified too as it is very similar to tertiary.
Furthermore I suggest to remove tertiary&unclassified from preferred highways. They are just normal highways if they come without bike lane or "bike infrastructure". (IMO we should do the same for service&residential but let's do this later.)
For racingbike the state for residential&service is confusing in master: residential was in the "preferred tag" but also was avoided later on. I cleaned this up and put it just into avoidHighwayTags.
I also made the penalty for "tunnel" less severe.