public static void addTransfer(StopEntryImpl from, StopEntryImpl to) {
double distance = SphericalGeometryLibrary.distance(from.getStopLocation(),
to.getStopLocation());
StopTransfer transfer = new StopTransfer(to, 0, distance);
List<StopTransfer> transfers = new ArrayList<StopTransfer>();
StopTransfers existing = from.getTransfers();
if (existing != null && existing.getTransfersFromStop() != null)
transfers.addAll(existing.getTransfersFromStop());