Package org.opentripplanner.routing.core

Examples of org.opentripplanner.routing.core.TraverseOptions


  private List<ArrivalAndDepartureInstance> getDeparturesInTimeRange(State s0,
      long fromTime, long toTime) {

    boolean useRealtime = false;
    TraverseOptions options = s0.getOptions();
    OBATraverseOptions config = options.getExtension(OBATraverseOptions.class);
    if (config != null)
      useRealtime = config.useRealtime;

    ArrivalAndDepartureService service = _context.getArrivalAndDepartureService();
View Full Code Here


    _transfer = transfer;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();
    if (options.isArriveBy())
      return traverseReverse(s0);
    else
      return traverseForward(s0);
  }
View Full Code Here

      String fromPlace = from.getStopLat() + "," + from.getStopLon();
      String toPlace = to.getStopLat() + "," + to.getStopLon();
      Date targetTime = new Date();

      TraverseOptions options = new TraverseOptions();
      options.optimizeFor = OptimizeType.WALK;
      options.setModes(new TraverseModeSet(TraverseMode.WALK));
      options.useServiceDays = false;

      try {
        List<GraphPath> paths = _pathService.plan(fromPlace, toPlace,
            targetTime, options, 1);
View Full Code Here

    _transfer = transfer;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();
    if (options.isArriveBy())
      throw new UnsupportedOperationException();

    /**
     * Check if we've reached our transfer limit
     */
 
View Full Code Here

    _transferTime = transferTime;
  }

  @Override
  public State traverse(State s0) {
    TraverseOptions options = s0.getOptions();

    if (options.isArriveBy())
      return null;

    State results = null;

    for (StopTimeInstance instance : _instances) {
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.core.TraverseOptions

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.