Skip to content

Add Austria specific rule for dismounting bike at paths - #2402

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Sep 27, 2021

Copy link
Copy Markdown

Working on #2389 there was the insight we should add a contry specific rule for Austria:

  • Bicycle riders have to push their bike on "highway=path" , unless it is explicitly allowed in Austria.
  • Changing the rules in a way to push bikes on "highway=path" when it is a "foot=designated" path, unless biking is explicitly allowed.

@boldtrn boldtrn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me and seems to be exactly what we discussed in #2389.

I am not 100% sure about adding another method to the CountryRule? Or if this might be something we rather want to in the parser?

@ghost

ghost commented Oct 13, 2021

Copy link
Copy Markdown
Author

@ratrun What do you think ?

if (currentOffBike == true)
return currentOffBike;
RoadClass roadClass = RoadClass.find(readerWay.getTag("highway", "path"));
return (roadClass == RoadClass.PATH);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I didn't understand this line, but how are ways tagged with highway=path in combination with e.g. bicycle=yes classified? I believe that in this case the result should return false.

CountryRule countryRule = way.getTag("country_rule", null);
if (!way.hasTag("bicycle", accepted) && (countryRule != null)) {
dismountBike = countryRule.getOffBike(way, dismountBike);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I see: You are handling the case mentioned before here.

@austrianton

Copy link
Copy Markdown

I would like to add, that due to Austrian forestry law, bicycle=no and vehicle=forestry should be treated the same way.

The only way to legally have a bike on a forest road, is to carry it on your back (so actually also no pushing)

@karussell

Copy link
Copy Markdown
Member

Why was this closed? (unfortunately github also gives me currently 500 errors when looking into the source)

@austrianton

Copy link
Copy Markdown

The routing seems to now avoid paths, that don't have an explicit bicycle=yes tag, for bikes. So it seems to be implemented.

@karussell

karussell commented Jun 15, 2022 •

Copy link
Copy Markdown
Member

There was no country dependent rule added (for when to get off the bike). But the contributor removed its account and the PR code was also deleted. Maybe @oflebbe has an idea :)

See also #2592.

@oflebbe

oflebbe commented Jun 15, 2022 •

Copy link
Copy Markdown
Contributor

Oops yes, I have an idea 👍 . I wanted to merge accounts, but the outcome is not what I was expecting. It is both me.
Nevertheless, my contribution in this PR went into git as 2e0016d .

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants