Problem with Google Maps API Javascript

4

Today I come to ask for help because I have a problem with a registry autocompleter that is spinning around me and I can not solve it is about an api of google maps javascript.

What I want is that in the city autocompleter the API works like in this image

but I get the error this

I enclose the script that I am using:

<script type="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places&key=AIzaSyANHGO0Y2f8bQ-Owt4Yjgn9uf5U29sJHY8"></script>

link: www.tuscitas.com

    
asked by Aeiko Sanchez 18.07.2016 в 20:11
source

1 answer

1

Aeiko, check well the code uploaded to your Host.

When inspecting the source code, I see that you are including the lib as follows:

<script src="https://maps.googleapis.com/maps/api/js?&signed_in=true&libraries=places&callback=initMapGoogle" async defer></script>

Try to include it like this , replacing '{DOMAIN_API_KEY}' with your key:

<script type="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&callback=initMapGoogle&key={DOMAIN_API_KEY}"></script>

If you know how to use, for example, Google Chrome DevTools, in "Console" you can see the following error:

  • Google Maps API error: MissingKeyMapError link

Clearly you need to put your API Key

    
answered by 12.10.2016 в 21:01