google maps - setting language for reverse geocoding Gmaps v.3 -



google maps - setting language for reverse geocoding Gmaps v.3 -

do how set language reverse geocoding php response ? (always set en)

**here code** <code> $api_key = "***"; $url = 'http://maps.google.com/maps/geo?q=49.8411860,30.1066580&output=json&sensor=true_or_false&key=' . $api_key.'&language=uk'; $data = @file_get_contents($url); $jsondata = json_decode($data,true); if(is_array($jsondata )&& $jsondata ['status']['code']==200) { $addr = $jsondata ['placemark'][0]['address']; } echo $addr; </code> **the output is** "l'va tolstoho street, bila tserkva, kyivs'ka oblast, ukraine"

if want english language alter uri variable language 'en' i.e. &language=en

$url = 'http://maps.google.com/maps/geo?q=49.8411860,30.1066580&output=json&sensor=true_or_false&key=' . $api_key.'&language=en';

google maps api localization reference guide

see list of language codes on wikipedia

google-maps geocode

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -