-
Notifications
You must be signed in to change notification settings - Fork 118
Fix via waypoints APIs naming #961
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
Conversation
danesfeder
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.
Thanks for this update @Guardiola31337
|
@Guardiola31337 Also please add |
| private Point destination; | ||
| private Point origin; | ||
| private String[] approaches; | ||
| private Integer[] waypoints; |
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 was correct as-was. Should be waypoints as one word, no capital P
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.
Yeah, you're correct. Will update in a follow-up PR. Thanks for flagging 🙇
Yeah, I agree. We should be consistent across the different services. Will implement ☝️ if we're not cool breaking SemVer.
You mean, adding "waypoints" option to Map Matching route options, right? I've already added it to Directions 👀 mapbox-java/services-directions/src/main/java/com/mapbox/api/directions/v5/models/RouteOptions.java Line 284 in 57e8710
mapbox-java/services-directions/src/main/java/com/mapbox/api/directions/v5/models/RouteOptions.java Line 569 in 57e8710
|
|
@Guardiola31337 Please add a call to viaWaypoints() when RouteOptions are being saved/generated: mapbox-java/services-directions/src/main/java/com/mapbox/api/directions/v5/MapboxDirections.java Line 235 in 6e6110a
I believe tests might be updated as well. |
We found in mapbox/mapbox-navigation-android#1733 (comment) that naming could be confusing and should be more explicit in order to make clients' life easier.