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

RouteStep encoding rounding #697

Merged
merged 2 commits into from
May 24, 2022
Merged

RouteStep encoding rounding #697

merged 2 commits into from
May 24, 2022

Conversation

Udumft
Copy link
Contributor

@Udumft Udumft commented May 24, 2022

Resolves #670
PR removes rounding distance and travel times when encoding RouteStep. Unit test updated.

…s when encoding RouteStep. Unit test updated.
@Udumft Udumft self-assigned this May 24, 2022
@Udumft Udumft marked this pull request as ready for review May 24, 2022 13:49
@Udumft Udumft requested a review from a team May 24, 2022 13:49
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -1,5 +1,9 @@
# Changes to Mapbox Directions for Swift

## main

* Removed limiting `RouteStep.distance`, `RouteStep.expectedTravelTime` and `RouteStep.typicalTravelTime` precision to 1 decimal digit when being encoded. ([#697](https://github.com/mapbox/mapbox-directions-swift/pull/697))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Removed limiting `RouteStep.distance`, `RouteStep.expectedTravelTime` and `RouteStep.typicalTravelTime` precision to 1 decimal digit when being encoded. ([#697](https://github.com/mapbox/mapbox-directions-swift/pull/697))
* Fixed an issue where `RouteStep.distance`, `RouteStep.expectedTravelTime` and `RouteStep.typicalTravelTime` were rounded to one decimal place when being encoded. ([#697](https://github.com/mapbox/mapbox-directions-swift/pull/697))

@1ec5 1ec5 added the bug label May 24, 2022
@1ec5 1ec5 added this to the v2.5 milestone May 24, 2022
@1ec5 1ec5 merged commit f100545 into main May 24, 2022
@1ec5 1ec5 deleted the vk/670-route-step-rounding branch May 24, 2022 21:57
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.

RouteStep rounds distances and times when encoding
2 participants