bmlt-enabled / bmlt-workflow

supports automation of meeting adds/changes/deletes
Other
4 stars 3 forks source link

Google API #76

Open kcad opened 2 years ago

kcad commented 2 years ago

Where is the Google API information derived from? We did not see a way to add.

tempsaint commented 2 years ago

Just to clarify what the issue was... on a test server, we have workflow submissions waiting. When trying to approve the submission we get an error

ERROR: Could not geolocate meeting address. Please try amending the address with additional/correct details..

We are assuming that the test root server doesn't have a Maps API key set (which makes sense for a test root server) but we don't see anything in the workflow-submissions settings about Maps API or anything.

nigel-bmlt commented 2 years ago

The plugin will retrieve your gmaps key from the server configuration (via logging in to the admin page and scraping it from the google_api_key in the response from index.php) and use that.

We've talked about moving this to a BMLT server side geocode API here https://github.com/bmlt-enabled/bmlt-root-server/issues/458

Unfortunately there's no nice way around it without that - we can't submit a meeting change without successful geolocation, but we don't want to make the plugin need an API key all on its own.

The quick fix is to add your real API key into the test server. If that's not workable let me know and I'll think about what other options we have.