From c7ed86072ba0dded26aeeecf3a60746145f8fe74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Calzado?= Date: Thu, 1 Sep 2022 13:30:08 +0200 Subject: [PATCH] Fix parameter for new HERE Isolines API --- .../python/cartodb_services/cartodb_services/here/routing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/here/routing.py b/server/lib/python/cartodb_services/cartodb_services/here/routing.py index 2b72ff9..c5e3f3d 100644 --- a/server/lib/python/cartodb_services/cartodb_services/here/routing.py +++ b/server/lib/python/cartodb_services/cartodb_services/here/routing.py @@ -345,6 +345,9 @@ class HereMapsRoutingIsolineV8(Traceable): mode_params.update({'routingmode': mode_type}) if not ('mode_traffic' in options and options['mode_traffic'] == 'enabled'): - mode_params.update({'departuretime': 'any'}) + if 'is_destination' in options and options['is_destination'].lower() == 'true': + mode_params.update({'arrivaltime': 'any'}) + else: + mode_params.update({'departuretime': 'any'}) return mode_params