Package org.opentripplanner.routing.spt

Examples of org.opentripplanner.routing.spt.GraphPath


    if (!fromStop.equals(toStop)) {

      long timeFrom = state.getBackState().getTime();
      long timeTo = state.getTime();

      GraphPath path = _itinerariesService.getWalkingItineraryBetweenStops(
          fromStop, toStop, new Date(timeFrom), options);

      if (path != null) {
        ItineraryBean walk = getPathAsItinerary(path, options);
        scaleItinerary(walk, timeFrom, timeTo);
View Full Code Here


        if (i == 0)
          walkFrom = from.getLocation();
        if (i + 1 == legs.size())
          walkTo = to.getLocation();

        GraphPath path = _itinerariesService.getWalkingItineraryBetweenPoints(
            walkFrom, walkTo, time, options);

        if (path == null) {
          throw new IllegalStateException("expected walking path to exist");
        }
View Full Code Here

  private Double getPathsAsDistance(List<GraphPath> paths) {

    if (paths == null || paths.isEmpty())
      return null;

    GraphPath path = paths.get(0);

    double totalDistance = 0;

    State prev = null;
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.spt.GraphPath

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.