-
Notifications
You must be signed in to change notification settings - Fork 319
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
Conversation
4d12cb4
to
7a9db14
Compare
DirectionsRoute firsRoute = routes.get(routeIndex); | ||
String chosenRouteLegDescription = obtainRouteLegDescriptionFrom(chosenRoute); | ||
String firstRouteLegDescription = obtainRouteLegDescriptionFrom(firsRoute); | ||
int minSimilarity = DamerauLevenshteinAlgorithm.execute(chosenRouteLegDescription, firstRouteLegDescription); |
There was a problem hiding this comment.
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
?
7a9db14
to
3f417da
Compare
Addressed your comment @devotaaabel |
There was a problem hiding this 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
Sure thing. Wasn't worth it in this case though basically because of #808 (comment)
|
DamerauLevenshteinAlgorithm.java
is an adapted version of https://github.com/KevinStern/software-and-algorithms/blob/master/src/main/java/blogspot/software_and_algorithms/stern_library/string/DamerauLevenshteinAlgorithm.javaFixes #764
As @bsudekum mentioned in the iOS equivalent PR
cc @danesfeder @devotaaabel