org.opentripplanner.routing.services.FareService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.routing.services;
import org.opentripplanner.routing.algorithm.raptor.transit.TransitLayer;
import org.opentripplanner.routing.algorithm.raptor.transit.TripSchedule;
import org.opentripplanner.routing.core.Fare;
import org.opentripplanner.transit.raptor.api.path.Path;
import java.io.Serializable;
/**
* Computes a fare for a given sequence of Rides. The FareService is serialized
* as part of the Graph; Hence it should be {@link Serializable}.
*/
public interface FareService extends Serializable {
/**
* @param path the OTP2 Raptor path for which we want to compute a fare
* @param transitLayer the TransitLayer that this Path references for stop numbers etc.
*/
Fare getCost(Path path, TransitLayer transitLayer);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy