diff --git a/here_location_services/tour_planning_api.py b/here_location_services/tour_planning_api.py index 2db8276..6e13bb4 100644 --- a/here_location_services/tour_planning_api.py +++ b/here_location_services/tour_planning_api.py @@ -72,7 +72,7 @@ def solve_tour_planning( if optimization_traffic: data["configuration"]["optimizations"]["traffic"] = optimization_traffic - if optimization_traffic: + if optimization_waiting_time: data["configuration"]["optimizations"]["waitingTime"] = optimization_waiting_time data["fleet"] = vars(fleet)