-
Notifications
You must be signed in to change notification settings - Fork 118
Fix waypoints APIs naming for map matching and directions services #962
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
23a1d74 to
c6dce90
Compare
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.
@Guardiola31337 left some comments regarding naming / javadoc. We are close, but imo this is still a little confusing for developers looking at the documentation for the first time. cc @1ec5
| * Optionally, set which input coordinates should be treated as via way points. | ||
| * Optionally, set which input coordinates should be treated as separate legs. | ||
| * <p> | ||
| * Most useful in combination with steps=true and requests based on traces |
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.
Does traces make sense here? Reading this javadoc, I'm still not entirely sure what separateLegs means.
set which input coordinates should be treated as separate legs.
By adding coordinates to a Directions API request, you are creating new legs. I think it may make sense here to say that separateLegs is directly influencing the guidance behavior when set.
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.
c6dce90 to
aba088c
Compare
|
After some discussion, we agreed on fixing the naming to "waypoint indices":
Hope this is clear now. |
Actually, this is not technically correct because coordinate indices not added act as silent waypoints, so not adding them is what makes them silent. I'm updating (last time, promise!) the naming to Sorry for the back and forth. |
…from waypoints to waypoint indices
c807d61 to
2a5e46c
Compare
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 the updates @Guardiola31337 this is much more clear
|
@danesfeder & @Guardiola31337 , if needed, please don't forget about updating mentions of waypoints in https://docs.mapbox.com/android/java/overview/directions/ and/or https://docs.mapbox.com/android/java/overview/map-matching/ thanks |
Follow up PR from latest feedback in #961
Edited:
waypointstowaypoint indices 👀 Fix waypoints APIs naming for map matching and directions services #962 (comment)separatesLegsNoting that for the Map Matching service we're deprecating
mapbox-java/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java
Line 488 in c834c07
mapbox-java/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java
Line 507 in aba088c
cc @1ec5