Fixed encoding problem with Mapbox geocoding

This commit is contained in:
Antonio 2018-01-18 11:55:25 +01:00
parent 7d8cc4ae87
commit d442fab9da

View File

@ -69,7 +69,7 @@ class MapboxGeocoder(Traceable):
country = [country] if country else None country = [country] if country else None
try: try:
response = self._geocoder.forward(address=', '.join(address), response = self._geocoder.forward(address=', '.join(address).decode('utf-8'),
country=country, country=country,
limit=1) limit=1)