Reverse geocoding with options - Google API
So I make a reverse geocoded call like so:
var geocoder = new google.maps.Geocoder()开发者_开发知识库;
geocoder.geocode({'latLng': foundLoc});
I want to add the language parameter to it. If I made a direct post to the Geocoding URL, I would just append &language=us
or something to the end of it, but how would I do that here?
You add a language parameter to the script tag when you include the api. Like so
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ja">
精彩评论