* @return The resulting {@link Place} object.
*/
private Place makePlace(State state, Vertex vertex, Edge edge, Stop stop, TripTimes tripTimes) {
// If no edge was given, it means we're at the end of this leg and need to work around that.
boolean endOfLeg = (edge == null);
Place place = new Place(vertex.getX(), vertex.getY(), vertex.getName(),
makeCalendar(state), makeCalendar(state));
if (endOfLeg) edge = state.getBackEdge();
if (vertex instanceof TransitVertex && edge instanceof OnboardEdge) {