开发者

Reverse geocoding with options - Google API

开发者 https://www.devze.com 2023-03-19 07:54 出处:网络
So I make a reverse geocoded call like so: var geocoder = new google.maps.Geocoder()开发者_开发知识库;

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

精彩评论

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