0
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=.......&sensor=false&libraries=places"></script>

I want to add &libraries=geometry into the script above, how describe it?

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=.......&sensor=false&libraries=places&libraries=geometry"></script>

or

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=.......&sensor=false&libraries[]=places&libraries[]=geometry"></script>

2 Answers 2

2

According to the documentation, you should give multiple libraries comma-separated:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=.......&sensor=false&libraries=places,geometry"></script>
Sign up to request clarification or add additional context in comments.

Comments

0

you cannot specify to variables with the same name, the post/get script will only handle one of those I suggest you replace 'libraries=places&libraries=geometry' with 'libraries=places,geometry' and see how that works for you.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.