Skip to content

clean up bike speed parser#3028

Merged
karussell merged 4 commits intomasterfrom
cleanup_bike_speed_parser
Jun 21, 2024
Merged

clean up bike speed parser#3028
karussell merged 4 commits intomasterfrom
cleanup_bike_speed_parser

Conversation

@karussell
Copy link
Member

Currently the bike speed parsing is too complicated, especially the handling of the "pushing speed". I adapted the code while keeping all unit tests. This made it clear that e.g. the default speed for path and footway was incorrectly set IMO which I fixed.

I stumbled over this unclear code while I wanted to fix this bug (see new test case).

image

@ratrun @caspg please have a look if this is an improvement for you too.

@karussell karussell added this to the 10.0 milestone Jun 21, 2024
Copy link
Contributor

@ratrun ratrun left a comment

Choose a reason for hiding this comment

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

The implementation code looks indeed much cleaner now!

@caspg
Copy link
Contributor

caspg commented Jun 21, 2024

I just tested this. Didn't see any improvements (because I think didn't encounter bugs like this) but works as expected 👍

@karussell karussell merged commit 16b5afb into master Jun 21, 2024
@karussell karussell deleted the cleanup_bike_speed_parser branch June 21, 2024 16:32
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.

3 participants