googlemaps / google-maps-services-js

Node.js client library for Google Maps API Web Services
Apache License 2.0
2.9k stars 639 forks source link

Address autocomplete ApiNotActivatedMapError #1053

Open adamgerhant opened 1 year ago

adamgerhant commented 1 year ago

When using any address autocomplete component in React, I was getting the error "ApiNotActivatedMapError", even though I activated the Maps JavaScript API as stated in the error code description here: https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error

Turns out I also needed to enable the places API in order for it to work. I think it would be good for this to be added to the documentation, or even better if a different error could be thrown if the places API is not enabled.

wangela commented 1 year ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@adamgerhant Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.