-
Create an API Key from the Google Places API Documentation by clicking on the "GET A KEY" button.
-
Once you have a key, save it to your .env file using the environment key
GOOGLE_MAPS_API_KEY
. -
Next, click on the
API Console
link just below the API Key. This will take you to your API Console where you can enable/disable APIs and manage credentials.
It is highly recommended to restrict your API Key, especially in production.
- Click on Library
- Click on the Google Maps Javascript API
- Click on Enable
You're now ready to start using the API Key in your application!