Beautify code
This commit is contained in:
parent
049c8e8657
commit
82a7477d37
@ -25,8 +25,9 @@ class MapzenGeocoder(Traceable):
|
||||
@qps_retry(qps=20)
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user