Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

Ignore whitespace Rev 294 → Rev 296

/trunk/applications/jrest/services/OdsCommune.php
41,7 → 41,7
$lon = $_GET['lon'];
$infos_altitude_json = file_get_contents('http://maps.googleapis.com/maps/api/elevation/json?sensor=false&locations='.$lat.','.$lon);
$infos_commune_json = file_get_contents("http://ws.geonames.org/findNearbyJSON?featureClass=ADM4&lat=".urlencode($lat)."&lng=".urlencode($lon)."&style=full") ;
$infos_commune_json = file_get_contents("http://api.geonames.org/findNearbyJSON?featureClass=ADM4&lat=".urlencode($lat)."&lng=".urlencode($lon)."&style=full") ;
 
// à voir l'utilisation de google places lors de la mise en place d'un compte google premier api
//$infos_commune = file_get_contents('https://maps.googleapis.com/maps/api/place/search/json?sensor=false&locations='.$lat.','.$lon);