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

Freezes when trying to enter address #22

Open
micheleacox opened this issue Sep 6, 2020 · 2 comments
Open

Freezes when trying to enter address #22

micheleacox opened this issue Sep 6, 2020 · 2 comments

Comments

@micheleacox
Copy link

micheleacox commented Sep 6, 2020

When I try to enter an address in the address bar, the bar turns gray after entering one key stroke. See screen shot:

image

I've tested my Google API key using test links given by Google (see below), and as far as I can tell the API key is working.

The links between my-reps pages are also working, i.e. I can click "more about this project" and get a new page.

This is my first time using Jekyll, and I am having to run it asbundle exec jekyll server -w, so perhaps there is an issue with my install.

API Key Test Links
https://www.googleapis.com/civicinfo/v2/elections?key=<MY_API_KEY>
https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=<MY_API_KEY>

@derekeder
Copy link
Member

hi @micheleacox - looks like it is an issue with the API key. When you set up your Google API key, you'll need to make sure its either unrestricted or that you've added your website to the list of allowed referrers: https://developers.google.com/maps/documentation/javascript/get-api-key#restrict_key

@hsewebteam
Copy link

I'm having the same issue. Have added the API in the script code. Verified the domain, setup billing, and added credentials in google api console. Still cant do address lookup. any suggestions?

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

No branches or pull requests

3 participants