Search in sources :

Example 1 with Place

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);
}
Also used : Place(org.opentripplanner.api.model.Place) Leg(org.opentripplanner.api.model.Leg)

Aggregations

Leg (org.opentripplanner.api.model.Leg)1 Place (org.opentripplanner.api.model.Place)1