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

AverageSpeedDetails: avoid exception for short edges #1871

Merged
merged 3 commits into from
Jan 28, 2020
Merged

Conversation

karussell
Copy link
Member

fixes #1848

More or less copied your fix @easbar and added a test for it :)

@karussell karussell added the bug label Jan 27, 2020
@karussell karussell added this to the 1.0 milestone Jan 27, 2020
@karussell karussell requested a review from easbar January 27, 2020 21:15
# Conflicts:
#	core/src/main/java/com/graphhopper/util/details/AverageSpeedDetails.java
@easbar
Copy link
Member

easbar commented Jan 28, 2020

Nice thanks! I can confirm this fixes my original issues as well (infinite speed errors when running Measurement on bayern-140101.osm.pbf).

@karussell karussell merged commit 9791b3f into master Jan 28, 2020
@karussell karussell deleted the issue_1848 branch January 28, 2020 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

average_speed was infinite error in PathDetail calculation
3 participants