Skip to content

Commit

Permalink
Merge branch 'basicNavigation' of https://github.com/AMOS-Project-TU-…
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoGetup committed Nov 29, 2018
2 parents 613ece0 + 9e4aa68 commit e824009
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/amos/corridornavigation/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
import android.widget.Toast;

import com.mapbox.api.directions.v5.DirectionsCriteria;
import com.mapbox.api.directions.v5.models.BannerInstructions;
import com.mapbox.api.directions.v5.models.DirectionsRoute;
import com.mapbox.api.directions.v5.models.LegStep;
import com.mapbox.api.directions.v5.models.RouteLeg;
import com.mapbox.api.directions.v5.models.StepManeuver;
import com.mapbox.api.geocoding.v5.MapboxGeocoding;
import com.mapbox.api.geocoding.v5.models.CarmenFeature;
import com.mapbox.api.geocoding.v5.models.GeocodingResponse;
Expand All @@ -28,6 +32,7 @@
import com.mapbox.services.android.navigation.v5.navigation.MapboxNavigationOptions;
import com.mapbox.services.android.navigation.v5.navigation.NavigationRoute;

import java.util.ArrayList;
import java.util.List;

import retrofit2.Call;
Expand Down Expand Up @@ -175,6 +180,7 @@ public void onNavigateButtonClicked(View view) {
.shouldSimulateRoute(simulateRoute)
.build();


int max=options.directionsRoute().legs().get(0).steps().size();
for(int i = 0; i<max;i++) {
Log.d("instruction", options.directionsRoute().legs().get(0).steps().get(i).maneuver().instruction());
Expand Down

0 comments on commit e824009

Please sign in to comment.