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

standard average speed for Polyline initialization when step(speed=0) #5392

Closed
wants to merge 1 commit into from
Closed

standard average speed for Polyline initialization when step(speed=0) #5392

wants to merge 1 commit into from

Conversation

th3w4y
Copy link
Contributor

@th3w4y th3w4y commented Sep 11, 2016

Fixes:

  • force a standard average speed for Polyline initialization when step(speed=0)

#5382

@mention-bot
Copy link

@th3w4y, thanks for your PR! By analyzing the annotation information on this pull request, we identified @kanemasa1987, @anakin5 and @solderzzc to be potential reviewers

@@ -49,6 +51,7 @@ def cached_polyline(origin, destination, speed, google_map_api_key=None):
PolylineObjectHandler._run = True
PolylineObjectHandler._instability = 20 # next N moves use same cache

speed = min(speed or PolylineObjectHandler._standard_average_speed, PolylineObjectHandler._standard_max_speed)
Copy link
Contributor Author

@th3w4y th3w4y Sep 11, 2016

Choose a reason for hiding this comment

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

If someone wonders why the hardcoded values... it does not matter that much... the StepWalker.step(speed=x) will override those values...

this values are used only for calculating the nr. of elevation samples... not for walking!

@th3w4y
Copy link
Contributor Author

th3w4y commented Sep 11, 2016

was handled in #5382

@th3w4y th3w4y deleted the pol_obj_handler_speed_zero branch September 12, 2016 09:18
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.

None yet

2 participants