public class DCFareCalculator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DCFareCalculator.Fare |
Constructor and Description |
---|
DCFareCalculator() |
Modifier and Type | Method and Description |
---|---|
static List<DCFareCalculator.Fare> |
calculateFares(List<Ride> rides)
Should we have exactly one fare per ride, where some fares may have zero cost if they are transfers from the same operator?
...except that this doesn't work for MetroRail, where two legs combine into one.
|
static Rectangle2D.Double |
createFareZone(double min_lon,
double max_lat,
double max_lon,
double min_lat) |
public static List<DCFareCalculator.Fare> calculateFares(List<Ride> rides)
public static Rectangle2D.Double createFareZone(double min_lon, double max_lat, double max_lon, double min_lat)
Copyright © 2019. All rights reserved.