Beautify code

This commit is contained in:
Rafa de la Torre 2017-03-08 10:14:37 +01:00
parent 049c8e8657
commit 82a7477d37

View File

@ -26,7 +26,8 @@ class MapzenGeocoder(Traceable):
def geocode(self, searchtext, city=None, state_province=None,
country=None, search_type=None):
if search_type.lower() == 'address': #remove the search_type if its address from the params sent to mapzen
# Remove the search_type if its address from the params sent to mapzen
if search_type.lower() == 'address':
search_type = None
request_params = self._build_requests_parameters(searchtext, city,