Instruction arrivalInstruction = new Instruction(Instruction.PT_END_TRIP, arrivalStop.stop_name, InstructionAnnotation.EMPTY, arrivalPointList); if (ptLeg.isInSameVehicleAsPrevious) { instructions.replaceLast(arrivalInstruction); } else { instructions.add(arrivalInstruction);
ViaInstruction newInstr = new ViaInstruction(fullInstructions.get(fullInstructions.size() - 1)); newInstr.setViaCount(pathIndex + 1); fullInstructions.replaceLast(newInstr);
ViaInstruction newInstr = new ViaInstruction(fullInstructions.get(fullInstructions.size() - 1)); newInstr.setViaCount(pathIndex + 1); fullInstructions.replaceLast(newInstr);
ViaInstruction newInstr = new ViaInstruction(fullInstructions.get(fullInstructions.size() - 1)); newInstr.setViaCount(pathIndex + 1); fullInstructions.replaceLast(newInstr);
fullInstructions.replaceLast(newInstr);