Visit the API Console, at this link: https://console.developers.google.com
Log in with your gmail account.
Hit the project list button & hit “create new project”
- Write a Project name, agree with the terms and then hit Create.
- Hit the Enable API button.
- Search for Maps Embed API or Google Maps Javascript API and select it
- Enable it for your current project.
- Search for Google Maps Geocoding API and select it.
- Enable it for your current project.
- After the API’s are enabled, click the Create credentials button.
CLICK Credentials in APIs & Services
Choose to CREATE CREDENTIAL > API Key.
Restrict API access to only your store
- CLICK restrict KEY
- Click HTTP referrers & API restrictions > restrict key
- Referrer : codemanbd.com
- SELECT API > Geocoding API
- Save
7.Now just see your api is green & directly “embedded google map” or “street view google map”, “embedded Iframe” will work on your site – for generation this legal & valid API