Place to = new Place(tripEndVertex.getX(), tripEndVertex.getY(), endName);
from.orig = request.from.name;
to.orig = request.to.name;
TripPlan plan = new TripPlan(from, to, request.getDateTime());
for (GraphPath path : paths) {
Itinerary itinerary = generateItinerary(path, request.showIntermediateStops);
itinerary = adjustItinerary(request, itinerary);
plan.addItinerary(itinerary);
}
return plan;
}