use of org.opentripplanner.api.model.Place in project OpenTripPlanner by opentripplanner.
the class TestIntermediatePlaces method validateLegsSpatially.
// Check that the end point of a leg is also the start point of the next leg
private void validateLegsSpatially(TripPlan plan, Itinerary itinerary) {
Place place = plan.from;
for (Leg leg : itinerary.legs) {
assertPlacesAreVeryClose(place, leg.from);
place = leg.to;
}
assertPlacesAreVeryClose(place, plan.to);
}