So I’m trying to configure Geocoding < Google Maps < Google Cloud Platform, but cannot get it to work and keep getting the error ExternalError: Google Maps authorization failed - is the API key invalid?
I have set up Google Cloud Platform (at the moment use the free $200/month), enable Geocoding API, generate an API key, restrict it to my bazari.anvil.app and to geocoding API, and copy paste the same Maps API key to Anvil’s Google API. What do I do wrong?
Hi @bridget. I’ve already done that, and I copied exactly the newly created API Key (without any API Key Restriction) but it still didn’t work. What else can I try?
Thanks @bridget. Works flawlessly. By the way, I realized that the doc of the Google Map component might have a typo. In the example of the Geocoding, the doc writes:
m = Marker(position=results[0].geometry.location)
instead of
m = GoogleMap.Marker(position=results[0].geometry.location)