Google Maps API error: Geocoding Service: This API project is not authorized to use this API.

You receive the following error message when trying to view Google Maps:Geocoding Service: This API project is not authorized to use this API.  For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key

You will need to enable the Geocoding API under APIs in the Google Cloud Platform Console to resolve this error. To do so, please follow the steps below:

  1. Go to GCP dashboard https://console.cloud.google.com/apis/dashboard?
  2. Click on “ENABLE APIS AND SERVICES”
  3. Search for ‘Geocoding API’
  4. Click on the Enable button