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

highway=path and bicycle=yes should not get speed for pushing section #1892

Conversation

Copy link
Member

@karussell karussell left a comment

Choose a reason for hiding this comment

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

I understand that we should increase speed for bicycle=yes & highway=path but should we really use such a high speed of 14km/h on a highway=footway only because bicycle is allowed there?
I.e. should we make a difference to bicycle=designated?

@karussell karussell changed the title highway=pathPath and bicycle=yes should not get speed for pushing sec… highway=path and bicycle=yes should not get speed for pushing section Feb 7, 2020
@ratrun
Copy link
Contributor Author

ratrun commented Feb 7, 2020

There is a difference to bicycle=designated, here we expect 18km/h, which is the cycleway speed. This seems correct to me. If you feel 14km/h is too much for bicycle=yes, what would you suggest?

@karussell
Copy link
Member

If you feel 14km/h is too much for bicycle=yes, what would you suggest?

For footway and bicycle=yes this is too much IMO. Maybe 10? Or maybe I have the wrong situation in mind. Isn't it like for that sign?

image

@ratrun
Copy link
Contributor Author

ratrun commented Feb 22, 2020

Yes, the sign is correct. I reduced the speed for this classification to 10 km/h as suggested.

@karussell karussell added this to the 1.0 milestone Feb 22, 2020
Copy link
Member

@karussell karussell left a comment

Choose a reason for hiding this comment

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

Cool, thanks!

Can you re-format the code in BikeCommonFlagEncoder.java? (some missing spaces and some too much)

if (way.hasTag("bicycle", "yes"))
speed = 10;
else
speed = highwaySpeeds.get("cycleway");
Copy link
Member

Choose a reason for hiding this comment

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

For nested if-else blocks can you add the brackets?

@ratrun
Copy link
Contributor Author

ratrun commented Feb 22, 2020

I added brackets for the nested ifs and improved the identations.

@karussell karussell merged commit b56ae1d into graphhopper:master Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants