Can we access the google api key as a global?

Hi. Some questions related to google api.

But first - Google just a few weeks ago rolled out some big changes to key requirements for google maps. I didn’t even realize this until I was working on some new map stuff and found that I had some code not using the api key from years ago. You might want to read up and check your code. https://developers.google.com/maps/billing/important-updates

It requires a credit card too even if you don’t use enough to get charged anything.:(:eek:

Q1: Does anyone know if the Google API Key set in the production setup (…/_lib/prod ) is accessible to us as a session or global variable? I know SC exposes certain things like the project version and so on like this.

The reason this is helpful is that I have made my own use of the google api for more advanced map functions, but since I already have to specify the Google API key in the production setup, I would only have to remember to change it in one place :slight_smile:

Q2: How do you put the google api key in the SC development system for testing apps when you just run them from the IDE? You can’t make changes in a production setup, so there must be a setting?

Thanks,
Jamie

I’ve done it to store email credentials, using a auxiliary table (key + value fields). Prior to use it in and app, I recover it from the aux table.