Skip to content

Return back waypoints per route#1509

Merged
korshaknn merged 2 commits intomainfrom
knn_return_back_waypoints_per_route
Nov 9, 2022
Merged

Return back waypoints per route#1509
korshaknn merged 2 commits intomainfrom
knn_return_back_waypoints_per_route

Conversation

@korshaknn
Copy link
Copy Markdown
Contributor

return back #1503

@korshaknn korshaknn self-assigned this Nov 9, 2022
@korshaknn korshaknn requested a review from a team as a code owner November 9, 2022 12:30
@korshaknn korshaknn force-pushed the knn_return_back_waypoints_per_route branch from 582f204 to 509fbc0 Compare November 9, 2022 12:32
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 9, 2022

Codecov Report

Merging #1509 (7a09011) into main (0d216ce) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1509      +/-   ##
============================================
+ Coverage     76.89%   76.90%   +0.01%     
  Complexity      937      937              
============================================
  Files           129      129              
  Lines          4016     4019       +3     
  Branches        582      582              
============================================
+ Hits           3088     3091       +3     
  Misses          678      678              
  Partials        250      250              
Impacted Files Coverage Δ
...pbox/api/directions/v5/models/DirectionsRoute.java 100.00% <ø> (ø)
.../mapbox/api/directions/v5/models/RouteOptions.java 95.05% <100.00%> (+0.02%) ⬆️
...com/mapbox/api/directions/v5/MapboxDirections.java 89.60% <100.00%> (+0.16%) ⬆️

@korshaknn korshaknn force-pushed the knn_return_back_waypoints_per_route branch from 509fbc0 to 7a09011 Compare November 9, 2022 12:57
@korshaknn
Copy link
Copy Markdown
Contributor Author

@LukasPaczos ptal

* List of {@link DirectionsWaypoint} objects. Each {@code waypoint} is an input coordinate
* snapped to the road and path network. The {@code waypoint} appear in the list in the order of
* the input coordinates.
* @deprecated the waypoints are returned in the root of the response only if
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did you remove @Deprecated? It's deprecated on backend.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Context in #1509 (comment).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nav API team mentioned earlier today that these changes are not yet available. Unless the situation is different @dzinad?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When did they mention that?
It's working for me. See
https://api.mapbox.com/directions/v5/mapbox/driving-traffic/138.4282743,34.9665031;138.42594,34.9665461?access_token=<TOKEN>&geometries=polyline6&overview=full&steps=true&compute_toll_cost=true
vs
https://api.mapbox.com/directions/v5/mapbox/driving-traffic/138.4282743,34.9665031;138.42594,34.9665461?access_token=<TOKEN>&geometries=polyline6&overview=full&steps=true&compute_toll_cost=true&waypoints_per_route=true.

Or do you mean EV waypoints? Then probably yes, it's still in development but this parameter is not about EV. Anyways, I'm not against not deprecating it at all.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, it was about EV waypoints indeed, I missed that! In any case we might give it a little bit more time to mature before we deprecate.

@korshaknn korshaknn merged commit e7f5604 into main Nov 9, 2022
@korshaknn korshaknn deleted the knn_return_back_waypoints_per_route branch November 9, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants