Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps V3 API key usage

Sounds stupid, but since there is no specific example in documentation, its not clear how to use the api key.
This part of code from documentation is not clear:

<script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key={API_KEY}&sensor=SET_TO_TRUE_OR_FALSE">
    </script>

Well I will find my apikey, let's say that the value of my api key will be for example: 123456ABCDEFG

So how should I used it?

1)src="https://maps.googleapis.com/maps/api/js?key={123456ABCDEFG}&sensor=false"
or
2)src="https://maps.googleapis.com/maps/api/js?key=123456ABCDEFG&sensor=false"
or else?

like image 632
user1097772 Avatar asked Nov 24 '25 15:11

user1097772


1 Answers

Don't forget the equals.

src="https://maps.googleapis.com/maps/api/js?key=123456ABCDEFG&sensor=false" 
like image 54
Andy Avatar answered Nov 26 '25 04:11

Andy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!