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 87c0e60..0adc519 100644 --- a/server/lib/python/cartodb_services/cartodb_services/here/routing.py +++ b/server/lib/python/cartodb_services/cartodb_services/here/routing.py @@ -56,7 +56,8 @@ class HereMapsRoutingIsoline(Traceable): options) def __calculate_isolines(self, source, mode, data_range, range_type, - options=[]): + options=None): + options = [] if options is None else options parsed_options = self.__parse_options(options) source_param = self.__parse_source_param(source, parsed_options) mode_param = self.__parse_mode_param(mode, parsed_options) diff --git a/server/lib/python/cartodb_services/cartodb_services/here/types.py b/server/lib/python/cartodb_services/cartodb_services/here/types.py index fa7f612..25eb936 100644 --- a/server/lib/python/cartodb_services/cartodb_services/here/types.py +++ b/server/lib/python/cartodb_services/cartodb_services/here/types.py @@ -11,7 +11,10 @@ def geo_polyline_to_multipolygon(polyline): else: coordinates = [] for point in polyline: - lat, lon = point.split(',') + if isinstance(point, tuple): + lat, lon = point + else: + lat, lon = point.split(',') coordinates.append("%s %s" % (lon, lat)) wkt_coordinates = ','.join(coordinates)