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
Google Maps API warning: NoApiKeys #1022
Comments
You mean so each instance has its own API key? Would this make sense as an application.yml level config? |
Unfortunately, OFN uses both at the moment. It uses Google Maps for searching and OSM for the tiles. |
@mkllnk is that for doing address lookups? Is GMaps only needed on the maps page? (slightly different point) |
GMaps is also used to search by location. For example, if you visit |
I can't even find where this GMaps API key currently gets send |
Does it even get set? Maybe the GMaps API works without key, but it prints the warning? |
On the staging I just deployed map breaks after few seconds https://ofn.hackers4peace.net/map |
I can't find it either. But I found an answer saying that our domain works, because it was active before June 22nd 2016. All newer apps need an API key now. We have two options:
If we wanted to get rid of Google Maps, we need another service to know where places are. We receive GPS coordinates for places in the search and for addresses of businesses. We use that to compute the distance between places and filter the search. |
Just a question: if OSM is not so well fueled in Australia, why not taking the opportunity to map on OSM while registering new enterprises on OFN? Like when you put your address, if not found in the OSM database, you can clic to add it and you can select the spot on the map and save. Maybe I'm dreaming :-) But that could be a way to get rid of Google maps and contribute at the same time to enrich the OSM Commons... |
I think we need quick fix to allow Google Maps API key in config. And later work on providing toggle alternative to only depend on OSM. This way each instance can choose 'consumer' or 'pioneer' mode depending on region and community. |
Could #1209 also be solved by removing the Google Maps dependency? Have looked into this a bit more. Suspect Google will offer best performance for geocoding, for speed and quality. Nominatim from OSM is not likely to be good enough. @mkllnk are there any current patterns used for managing API keys on the front end? |
PR #1359 adds with that patch now https://ofn.hackers4peace.net/map loads |
@pmackay I know three currently used ways to provide api keys.
|
@mkllnk thanks! I was slightly more wondering about best practice to make keys available in the frontend and whether keeping it hidden is a concern, but if not thats fine (and it follows Google recommendations, so in this case I guess not!). Agree option 2 works well for this for backend. |
Testing notes: |
So we need a place to let users set their google map api key.
The text was updated successfully, but these errors were encountered: