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

Add stick to chosen route when re-routing with UI functionality #808

Merged
merged 1 commit into from
Mar 30, 2018

Conversation

Guardiola31337
Copy link
Contributor

Fixes #764

As @bsudekum mentioned in the iOS equivalent PR

Noting, this is a crutch until this feature is implemented on the Mapbox Directions API.

cc @danesfeder @devotaaabel

@Guardiola31337 Guardiola31337 added platform parity Required to keep on par with iOS. navigation-ui labels Mar 27, 2018
@Guardiola31337 Guardiola31337 self-assigned this Mar 27, 2018
@Guardiola31337 Guardiola31337 force-pushed the pg-764-stick-to-chosen-route-ui branch 2 times, most recently from 4d12cb4 to 7a9db14 Compare March 29, 2018 07:57
DirectionsRoute firsRoute = routes.get(routeIndex);
String chosenRouteLegDescription = obtainRouteLegDescriptionFrom(chosenRoute);
String firstRouteLegDescription = obtainRouteLegDescriptionFrom(firsRoute);
int minSimilarity = DamerauLevenshteinAlgorithm.execute(chosenRouteLegDescription, firstRouteLegDescription);
Copy link
Contributor

Choose a reason for hiding this comment

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

why not remove this and make i = 0?

@Guardiola31337 Guardiola31337 force-pushed the pg-764-stick-to-chosen-route-ui branch from 7a9db14 to 3f417da Compare March 30, 2018 13:07
@Guardiola31337
Copy link
Contributor Author

Addressed your comment @devotaaabel
This is ready for a second round of 👀

Copy link
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

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

@Guardiola31337 this looks great. Let's keep thinking about how we can test the UI view models (in general) moving forward

@Guardiola31337
Copy link
Contributor Author

@danesfeder

Let's keep thinking about how we can test the UI view models (in general) moving forward

Sure thing. Wasn't worth it in this case though basically because of #808 (comment)

Noting, this is a crutch until this feature is implemented on the Mapbox Directions API.

@Guardiola31337 Guardiola31337 merged commit 174dda4 into master Mar 30, 2018
@Guardiola31337 Guardiola31337 deleted the pg-764-stick-to-chosen-route-ui branch March 30, 2018 13:55
@danesfeder danesfeder mentioned this pull request Apr 3, 2018
13 tasks
@kmadsen kmadsen mentioned this pull request Jul 1, 2020
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform parity Required to keep on par with iOS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants