BlockTripEntry prevTrip = trip.getPreviousTrip();
if (prevTrip == null)
continue;
StopSequence prevSequence = stopSequencesByTrip.get(prevTrip);
// No continuations if incoming is not part of the sequence collection
if (prevSequence == null)
continue;
// No continuation if it's the same stop sequence
if (prevSequence.equals(sequence))
continue;
// No contination if the the block group ids don't match
String prevGroupId = stopSequenceGroupIds.get(prevSequence);
if (!groupId.equals(prevGroupId))
continue;
StopEntry prevStop = prevSequence.getStops().get(
prevSequence.getStops().size() - 1);
StopEntry nextStop = sequence.getStops().get(0);
double d = SphericalGeometryLibrary.distance(prevStop.getStopLat(),
prevStop.getStopLon(), nextStop.getStopLat(), nextStop.getStopLon());
if (d < 5280 / 4) {
/*