From a9e942a48b349f9c6a5d24a6090f23b7a81f8ca3 Mon Sep 17 00:00:00 2001 From: nygeog Date: Thu, 2 Feb 2017 10:23:09 -0500 Subject: [PATCH] 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 --- .../cartodb_services/cartodb_services/mapzen/geocoder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/lib/python/cartodb_services/cartodb_services/mapzen/geocoder.py b/server/lib/python/cartodb_services/cartodb_services/mapzen/geocoder.py index 1209388..828554c 100644 --- a/server/lib/python/cartodb_services/cartodb_services/mapzen/geocoder.py +++ b/server/lib/python/cartodb_services/cartodb_services/mapzen/geocoder.py @@ -25,6 +25,10 @@ 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 + search_type = None + request_params = self._build_requests_parameters(searchtext, city, state_province, country, search_type)