From a6de8efd0d6da2ef48082d81401acd218fb8276d Mon Sep 17 00:00:00 2001 From: antoniocarlon Date: Tue, 21 Jul 2020 10:01:32 +0200 Subject: [PATCH] Removed the batch_size parameter in the call to cdb_bulk_geocode_street_point --- cartoframes/data/services/utils/geocoding_constants.py | 3 --- cartoframes/data/services/utils/geocoding_utils.py | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cartoframes/data/services/utils/geocoding_constants.py b/cartoframes/data/services/utils/geocoding_constants.py index fcd6895b0..51c480611 100644 --- a/cartoframes/data/services/utils/geocoding_constants.py +++ b/cartoframes/data/services/utils/geocoding_constants.py @@ -1,6 +1,5 @@ __all__ = [ 'HASH_COLUMN', - 'BATCH_SIZE', 'DEFAULT_STATUS', 'QUOTA_SERVICE', 'STATUS_FIELDS', @@ -12,8 +11,6 @@ HASH_COLUMN = 'carto_geocode_hash' -BATCH_SIZE = 200 - DEFAULT_STATUS = {'gc_status_rel': 'relevance'} QUOTA_SERVICE = 'hires_geocoder' diff --git a/cartoframes/data/services/utils/geocoding_utils.py b/cartoframes/data/services/utils/geocoding_utils.py index d73ef1578..afa9bb153 100644 --- a/cartoframes/data/services/utils/geocoding_utils.py +++ b/cartoframes/data/services/utils/geocoding_utils.py @@ -144,16 +144,14 @@ def geocode_query(table, schema, street, city, state, country, status): {street}, {city}, {state}, - {country}, - {batch_size} + {country} ) """.format( query=query, street=column_name(street), city=column_name(city), state=column_name(state), - country=column_name(country), - batch_size=geocoding_constants.BATCH_SIZE + country=column_name(country) ) status_assignment, status_columns = status_assignment_columns(status)