Reverse Geocoding with Parameters - Google API

So, I am making a geocoded callback like this:

var geocoder = new google.maps.Geocoder(); geocoder.geocode({'latLng': foundLoc}); 

I want to add a language parameter to it. If I made a direct entry to the geocoding URL, I would just add &language=us or something to the end, but how do I do this?

+4
source share
1 answer

You add a language parameter to the script tag when you enable api. In this way

 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ja"> 
+4
source

All Articles