google This API project is not authorized to use this API. code example
Example: google nearby places api "error_message": "This API project is not authorized to use this API.",
Go to the Developer Console https://console.developers.google.com/
Navigate to Google Maps -> APIs
Search for Geocoding and click on Google Maps Geocoding API -> Enable API. Do the same thing for Geolocating
Additionally you need to enable places api for places auto suggestion