Fixed country code problem. Added test

This commit is contained in:
Antonio
2018-01-16 16:36:24 +01:00
parent 5781f78c7f
commit 6c53846e33
2 changed files with 7 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ class MapboxGeocoder(Traceable):
if state_province:
address.append(state_province)
country = [country] if country else None
try:
response = self._geocoder.forward(address=', '.join(address),
country=country,