diff --git a/herepy/__init__.py b/herepy/__init__.py index ee93abd..5e5b261 100644 --- a/herepy/__init__.py +++ b/herepy/__init__.py @@ -6,7 +6,7 @@ __email__ = "abdullahselek.os@gmail.com" __copyright__ = "Copyright (c) 2017 Abdullah Selek" __license__ = "MIT License" -__version__ = "3.6.3" +__version__ = "3.6.4" __url__ = "https://github.com/abdullahselek/HerePy" __download_url__ = "https://pypi.org/pypi/herepy" __description__ = "A library that provides a Python interface to the HERE APIs" diff --git a/herepy/routing_api.py b/herepy/routing_api.py index 04e7c76..c2e2df2 100644 --- a/herepy/routing_api.py +++ b/herepy/routing_api.py @@ -463,8 +463,8 @@ def route_v8( key: ",".join(values), } if exclude: - key = list(avoid.keys())[0] - values = list(avoid.values())[0] + key = list(exclude.keys())[0] + values = list(exclude.values())[0] data["exclude"] = { key: ",".join(values), } @@ -477,8 +477,8 @@ def route_v8( if span_fields: data["spans"] = ",".join([field.__str__() for field in span_fields]) if truck: - key = list(avoid.keys())[0] - values = list(avoid.values())[0] + key = list(truck.keys())[0] + values = list(truck.values())[0] data["truck"] = { key: ",".join(values), }