here-android-sdk-examples
here-android-sdk-examples copied to clipboard
How to get waypoints/stopover points in between route
I am working on premium sdk version 3.18
i am unable to get stopover poitns in bteween the route. if i had stops in between the route i want to get the distance and eta for that point. and when i reached to that stopover or about to reach that stop over it shows me the toast.
Route: A -> x -> y -> z -> B
Hi @abhinavsrivastava1994
- To get waypoints on the route use following API:
List<RouteWaypoint> waypoints = route.getRouteWaypoints();
- To get estimated time to arrival use following API:
RouteTta tta = route.getTtaIncludingTraffic(subleg);// check aslo other route.getTta*** methods