Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Google geocoding #1600

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Fixed Google geocoding #1600

merged 1 commit into from
Mar 23, 2020

Conversation

antoniocarlon
Copy link
Contributor

The Google geocoder executes using the client's API key and thus doesn't have a defined quota + API key on the dataservices-api server (the available quota obtained using cdb_dataservices_client.cdb_service_quota_info() is always null).

The behavior of cdb_dataservices_client.cdb_service_quota_info() cannot be changed to avoid breaking existing client implementations so this check must be done in the client side (CARTOframes in this case).

Acceptance steps:

  • Change the geocoder provider for a user to google (using Superadmin for example)
  • Set a valid Google API key for geocoding in the google_maps_api_key field for the user (only needed if you want to see the actual result for the geocoding, otherwise the geocoding will return an error)
  • Grab the notebook attached to the related issue
  • Check that the geocoding can be performed

Related to https://github.com/CartoDB/support/issues/2451

Copy link
Contributor

@simon-contreras-deel simon-contreras-deel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simon-contreras-deel simon-contreras-deel merged commit bd1e531 into develop Mar 23, 2020
@simon-contreras-deel simon-contreras-deel deleted the fix_google_geocoding branch March 23, 2020 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants