js?key=AIzaSyAIkCMahDSKMSpGGSw8_9nzcoFwMujxLNU&libraries=places&callback=initAutocomplete:78 This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError 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

Tags:

Misc Example