Commit 318ec86f authored by Sebastian Hörl's avatar Sebastian Hörl
Browse files

use distance-based price

parent 5fc21bb4
......@@ -97,8 +97,9 @@ public class PublicTransportPredictor {
numberOfTransfers = Math.max(0, numberOfTransfers);
double cost = calculateCost(trip.getPerson(), legs);
// double cost = calculateCost(trip.getPerson(), legs);
double cost = 0.25 * inVehicleDistance * 1e-3;
return new PublicTransportPrediction(inVehicleTime, inVehicleDistance, accessEgressTime, transferTime,
numberOfTransfers, isOnlyWalk, crowflyDistance, cost);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment