开发者

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">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜