Package org.opentripplanner.routing.error

Examples of org.opentripplanner.routing.error.TrivialPathException


     * @param showIntermediateStops Whether to include intermediate stops in the itinerary or not
     * @return The generated itinerary
     */
    public Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) {
        if (path.states.size() < 2) {
            throw new TrivialPathException();
        }

        Itinerary itinerary = new Itinerary();

        State[] states = new State[path.states.size()];
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.error.TrivialPathException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.