You have to activate Google Maps Embed API and Google Maps JavaScript API in your Google Console.
Admin panel setup
Go to your Admin panel → Settings → General → Others
Set ‘Google Maps key‘
And save your changes.
Or use /.env file setup
Login to your FTP account.
Open and edit .env file.
Add this code:
GOOGLE_MAPS_API_KEY=your-googlemaps-keyReplace your-googlemaps-key.
Save and upload the file.
You are done.
Note:
The script needs the version 1 (v1) of the Google Maps Embed API like:
https://www.google.com/maps/embed/v1/place?key={key}&q={query}.