I am using geolocation in my laravel 5.8 project.
I want to use google map API auto complete in the search box. I created my own API key, and pasted link but it doesn't work.
I tried 3 links. First one is
<script src="https://maps.googleapis.com/maps/api/js?
key=AIzaSyDoas8GY7i156tn8zJyu474OJMEtJI2Uos&libraries=places&callback=initAutocomplete"
async defer></script>
And then the error is the below.
secondly, I tried this code
<script async defer src="https://maps.googleapis.com/maps/api/js?
key=AIzaSyDoas8GY7i156tn8zJyu474OJMEtJI2Uos&callback=initMap"
type="text/javascript"></script>
lastly, I put this
<script src="https://maps.googleapis.com/maps/api/place/autocomplete/json?input=1600+Amphitheatre
&key=AIzaSyDoas8GY7i156tn8zJyu474OJMEtJI2Uos&sessiontoken=1234567890" async defer></script>
and error point is here, footer.blade.php
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire