To get your API keys and set up billing details, visit the Google Maps Platform and create a project. You will be asked to select which APIs you need to use:
Tick the following:
- Maps — you’ll be needing this one or maps won’t work!
- Routes — if you will be using the Directions features of the plugin
- Places — if you will be creating maps by address, rather than by coordinates
Select or create a project, and set up billing for it. Once you’ve set that up, follow the instructions for getting an API key.
When you have created your API key, copy it and paste it into the settings for the plugin (Settings > Flexible Map):
Adding a Server API key
Once you’ve restricted your API key by referrer, you won’t be able to use it as a Server API key. The Server API key is used to reduce the number of requests made by a map, by resolving the address to coordinates on the server and remembering the coordinates for a while. If you make maps that use an address, you really should add a Server API key!
It doesn’t really need restrictions because it will be a secret key only used on the server and never seen in a web browser, but you can restrict it by the IP addresses of your website if you prefer.