swistakm/python-gmaps

Iterable parameters not handled

Closed this issue · 0 comments

Only the first element of an iterable parameters is handled. You can see this with the following code:

print Directions().directions('paris', 'berlin', avoid=('tolls', 'highways'))[0]['legs'][0]['duration']
print Directions().directions('paris', 'berlin', avoid=('highways', 'tolls'))[0]['legs'][0]['duration']

The first one doesn't avoid highways, while the second one does.