Snippet Library

Using Google Maps API Key Restrictions

You will need this script if you would like to have API Key restrictions for your Google Maps API Key.

Use one Google Maps API Key for JavaScript Map displays (The Events Calendar). Your “Maps JavaScript API” key should select “HTTP referrers (web sites)” restriction.

Use a different API Key for venue geolocation lookups (Events Calendar PRO) with Geocoding API. This key should select “IP addresses (web servers, cron jobs, etc.)” restriction.

Screenshot: https://cl.ly/300k2I1s321N