Get turn-by-turn navigation route data

This lets you get the route information for a list of waypoints (2+). This is the same data that is used for turn-by-turn navigation .

// Create the request
TGRouteRequest routeRequest = new TGRouteRequest.Builder()
               .addCoordinate(34.101558d, -118.340944d) // Grauman's Chinese Theatre
               .addCoordinate(34.011441d, -118.494932d) // Santa Monica Pier
               .build();
 
TallyGo.getTGNavigation().route(TGRouteRepository.getInstance(this),
       routeRequest, new TGNavigationEndpoint.TGRouteCallback() {
   @Override
   public void onSuccess(TGRouteResponse tgRouteResponse) {
       TGRoute route = tgRouteResponse.getRoute();
   }

   @Override
   public void onFailure(Exception e) {
       // Something failed, this could be a no-network error -- handle as you please
   }
});
Check out the Android Reference App to see this example in action.