google-maps-services-js icon indicating copy to clipboard operation
google-maps-services-js copied to clipboard

Address autocomplete ApiNotActivatedMapError

Open adamgerhant opened this issue 1 year ago • 1 comments

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.

adamgerhant avatar Oct 15 '23 00:10 adamgerhant

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.

wangela avatar Oct 15 '23 00:10 wangela