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:
- Go to GCP dashboard https://console.cloud.google.
- Click on "ENABLE APIS AND SERVICES"
- Search for 'Geocoding API'
- Click on the Enable button