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

org.opentripplanner.ext.fares.model.FareDistance Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.ext.fares.model;

import org.opentripplanner.transit.model.basic.Distance;

/** Represents a distance metric used in distance-based fare computation*/
public sealed interface FareDistance {
  /** Represents the number of stops as a distance metric in fare computation */
  record Stops(int min, int max) implements FareDistance {}

  /**
   * Represents the linear distance between the origin and destination points as a distance metric
   * in fare computation
   */
  record LinearDistance(Distance min, Distance max) implements FareDistance {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy