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

Fix bug in delay calculation

parent 8bc7ee5d
......@@ -284,7 +284,7 @@ public abstract class BaseUtilityEstimator extends AbstractTripRouterEstimator {
if (!Time.isUndefinedTime(trip.getOriginActivity().getEndTime())) {
double arrivalTime = trip.getOriginActivity().getEndTime() + travelTime;
if (!Time.isUndefinedTime(trip.getOriginActivity().getStartTime())) {
if (!Time.isUndefinedTime(trip.getDestinationActivity().getStartTime())) {
return Math.max(0.0, arrivalTime - trip.getDestinationActivity().getStartTime());
}
......
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