All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.ridehailing.RideHailingService Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.ext.ridehailing;

import java.util.List;
import java.util.concurrent.ExecutionException;
import org.opentripplanner.ext.ridehailing.model.ArrivalTime;
import org.opentripplanner.ext.ridehailing.model.RideEstimate;
import org.opentripplanner.ext.ridehailing.model.RideHailingProvider;
import org.opentripplanner.framework.geometry.WgsCoordinate;

/**
 * A service for querying ride hailing information to be used during routing.
 */
public interface RideHailingService {
  /**
   * The provider of the service.
   */
  RideHailingProvider provider();

  /**
   * Get the next arrivals for a specific location.
   */
  List arrivalTimes(WgsCoordinate coordinate, boolean wheelchairAccessible)
    throws ExecutionException;

  List rideEstimates(
    WgsCoordinate start,
    WgsCoordinate end,
    boolean wheelchairAccessible
  ) throws ExecutionException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy