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

DirectionsRoute to NavigationRoute refactoring #6516

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RingerJK
Copy link
Contributor

@RingerJK RingerJK commented Oct 27, 2022

Description

blocked by #6005

Squashed commits:
[f265764b67] Revert "- Added Waypoints to NavigationRoute; - RouteOptionsUpdater refactored."

This reverts commit b111ebe6f3b3396fa14212e88f2316ccc76f3cac.
[250633f2c7] NavigationRoute: create from DirectionsRoute(s)
[b111ebe6f3] - Added Waypoints to NavigationRoute; - RouteOptionsUpdater refactored.
@RingerJK RingerJK self-assigned this Oct 27, 2022
@RingerJK RingerJK added the skip changelog Should not be added into version changelog. label Oct 27, 2022
@dzinad
Copy link
Contributor

dzinad commented Jan 6, 2023

I think it's unblocked now.

@@ -203,6 +205,44 @@ class NavigationRoute internal constructor(
}
}

internal fun create(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this used only for tests? Now it looks like it. Why can't you do all these json manipulations directly in the test-only method? For example, in NavigationRouteEx.
I don't like adding this method to production code because it duplicates directions response structure. And now the knowledge of this structure only lives in mapbox-java, which I think is good and it should stay this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Should not be added into version changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants