addTransferLegIfNeeded(state, fromStop, toStop, options, legs);
}
} else if (edge instanceof TPTransferEdge) {
TPTransferEdge transferEdge = (TPTransferEdge) edge;
StopEntry fromStop = transferEdge.getFromStop();
StopEntry toStop = transferEdge.getToStop();
addTransferLegIfNeeded(state, fromStop, toStop, options, legs);
}
currentIndex++;