here-android-sdk-examples icon indicating copy to clipboard operation
here-android-sdk-examples copied to clipboard

How to get waypoints/stopover points in between route

Open abhinavsrivastava1994 opened this issue 3 years ago • 1 comments

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

abhinavsrivastava1994 avatar Jul 06 '21 07:07 abhinavsrivastava1994

Hi @abhinavsrivastava1994

  1. To get waypoints on the route use following API: List<RouteWaypoint> waypoints = route.getRouteWaypoints();
  2. To get estimated time to arrival use following API: RouteTta tta = route.getTtaIncludingTraffic(subleg);// check aslo other route.getTta*** methods

NazarKacharaba avatar Jul 07 '21 08:07 NazarKacharaba