Skip to content

clean up bike speed parser - #3028

Merged
karussell merged 4 commits into
masterfrom
cleanup_bike_speed_parser
Jun 21, 2024
Merged

karussell merged 4 commits into
masterfrom
cleanup_bike_speed_parser

Conversation

@karussell

Copy link
Copy Markdown
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

@ratrun ratrun left a comment

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.

The implementation code looks indeed much cleaner now!

@caspg

caspg commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

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

This branch was previously deployed

1 inactive deployment
benchmarks — 55a1c104 Deployed Jun 21, 2024 by karussell
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