Search in sources :

Example 1 with IntersectionLanes

use of com.mapbox.api.directions.v5.models.IntersectionLanes in project mapbox-navigation-android by mapbox.

the class TurnLaneAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(TurnLaneViewHolder holder, int position) {
    IntersectionLanes lane = lanes.get(position);
    holder.turnLaneView.updateLaneView(lane, maneuverModifier);
}
Also used : IntersectionLanes(com.mapbox.api.directions.v5.models.IntersectionLanes)

Example 2 with IntersectionLanes

use of com.mapbox.api.directions.v5.models.IntersectionLanes in project mapbox-navigation-android by mapbox.

the class InstructionStepResources method intersectionTurnLanes.

private void intersectionTurnLanes(LegStep step) {
    StepIntersection intersection = step.intersections().get(0);
    List<IntersectionLanes> lanes = intersection.lanes();
    if (checkForNoneIndications(lanes)) {
        turnLanes = null;
        return;
    }
    turnLanes = lanes;
}
Also used : StepIntersection(com.mapbox.api.directions.v5.models.StepIntersection) IntersectionLanes(com.mapbox.api.directions.v5.models.IntersectionLanes)

Aggregations

IntersectionLanes (com.mapbox.api.directions.v5.models.IntersectionLanes)2 StepIntersection (com.mapbox.api.directions.v5.models.StepIntersection)1