-
Notifications
You must be signed in to change notification settings - Fork 319
Kyv onboard route #2300
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
Kyv onboard route #2300
Conversation
libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt
Outdated
Show resolved
Hide resolved
| bearings = bearings, | ||
| classes = classes, | ||
| entry = entry, | ||
| into = `in`, |
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.
renamed in to into because in is reserved in kotlin. cc @Guardiola31337
Codecov Report
@@ Coverage Diff @@
## master #2300 +/- ##
=========================================
Coverage 32.77% 32.77%
Complexity 624 624
=========================================
Files 143 143
Lines 5547 5547
Branches 427 427
=========================================
Hits 1818 1818
Misses 3533 3533
Partials 196 196 |
Guardiola31337
left a comment
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.
This is a great start of the Onboard implementation, great work @RingerJK 💪
I'm missing end-to-end tests / examples verifying that everything is working as expected. Those will help us 👀 how every component plays to each other and if the overall design looks 👌
As it's easy to mess up 😅, I think we should make sure to build examples in Java and in Kotlin very early on, so that we could see how the API changes would impact both languages.
Also I left a bunch of comments / questions 😬
...gation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationRoute.kt
Show resolved
Hide resolved
| /** | ||
| * Class for specifying options for use with the walking profile. | ||
| */ | ||
| class NavigationWalkingOptions internal constructor(val walkingOptions: WalkingOptions) { |
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.
This is already defined in libdirections-offboard and it's never used. Could we reuse the one from Offboard module instead of creating a new duplicated class and remove this?
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.
They are independent, one in old module, another in new one. As I remember we decided don't remove NavigationWalkingOptions in libdirections-offboard because we'll need it for future features
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.
If those builders and DTOs are shared, they should live in base.
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.
they are, ptal at model
| .walkwayBias(walkwayBias) | ||
| .alleyBias(alleyBias) | ||
| .build() | ||
|
|
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.
WalkingOptionsNavigation.mapToWalkingOptions() ☝️ is never used.
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.
it's used in my next PR
...ctions-offboard/src/main/java/com/mapbox/navigation/route/offboard/router/NavigationRoute.kt
Show resolved
Hide resolved
...ctions-offboard/src/main/java/com/mapbox/navigation/route/offboard/router/NavigationRoute.kt
Show resolved
Hide resolved
| * @return array of lane objects that represent the available turn lanes at the intersection | ||
| * @since 1.0 | ||
| */ | ||
| class StepIntersectionNavigation( |
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.
Same comments as above re: DTOs / models
| * rotary - a traffic circle | ||
| * @since 1.0 | ||
| */ | ||
| class StepManeuverNavigation( |
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.
Same comments as above re: DTOs / models
| * Speech Synthesis Markup Language which helps voice synthesiser read information more humanely. | ||
| * @since 1.0 | ||
| */ | ||
| class VoiceInstructionsNavigation( |
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.
Same comments as above re: DTOs / models
| * allowed range of values is from -1 to 1, where -1 indicates indicates preference to avoid | ||
| * alleys, 1 indicates preference to favor alleys, and 0 indicates no preference (the default). | ||
| */ | ||
| data class WalkingOptionsNavigation( |
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.
Same comments as above re: DTOs / models
libnavigator/src/main/java/com/mapbox/navigation/navigator/MapboxNativeNavigator.kt
Outdated
Show resolved
Hide resolved
6aa1d7d to
e0022c4
Compare
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
.../java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityJava.java
Outdated
Show resolved
Hide resolved
...main/java/com/mapbox/services/android/navigation/testapp/activity/OnboardRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
...vigation/src/main/java/com/mapbox/services/android/navigation/v5/utils/extensions/Mappers.kt
Outdated
Show resolved
Hide resolved
...vigation/src/main/java/com/mapbox/services/android/navigation/v5/utils/extensions/Mappers.kt
Outdated
Show resolved
Hide resolved
libdirections-onboard/src/main/java/com/mapbox/navigation/route/onboard/OfflineRoute.kt
Outdated
Show resolved
Hide resolved
…ublic; - fix tests; - minor fixes/refactored.
…irection session dependencies(because one was moved to code module).
…emoved new modules dependencies from legacy ones
4f7f469 to
0beeb13
Compare
Description
Onboard(offline) Route #issue
bug,feature,new API(s),SEMVER, etc.)Goal
Implement OnBoard Route.
Implementation
Provide OnBoard Route. Separate Transfer and Present layers.
Testing
Please describe the manual tests that you ran to verify your changes
SNAPSHOTupstream dependencies if needed) through testapp/demo app and run all activities to avoid regressionsChecklist
CHANGELOGincluding this PR