From 275a0ad304f730963165bcc5a2585370e85b2985 Mon Sep 17 00:00:00 2001 From: Arno153 Date: Sat, 9 Mar 2019 17:18:34 +0100 Subject: [PATCH] refactoring: renomage variable bah oui, y'a un moment que le script n'utilise plus l'api google de geocoding... il fallait bien renommer les variable "*google*" un jour --- cron/stationLocationHasMoved.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cron/stationLocationHasMoved.php b/cron/stationLocationHasMoved.php index cd5605d..edc2996 100644 --- a/cron/stationLocationHasMoved.php +++ b/cron/stationLocationHasMoved.php @@ -39,20 +39,20 @@ if($debugVerbose) echo $wsUrl; $newStationAdress = "Not Available"; - $googleGeocodeAPIRawData = file_get_contents($wsUrl); - $googleGeocodeAPIDataArray = json_decode($googleGeocodeAPIRawData, true); + $GeocodeAPIRawData = file_get_contents($wsUrl); + $GeocodeAPIDataArray = json_decode($GeocodeAPIRawData, true); if($debugVerbose) { echo "vardump
"; - var_dump($googleGeocodeAPIDataArray); + var_dump($GeocodeAPIDataArray); } $quitter = 0; - if(count($googleGeocodeAPIDataArray)!=3) //parce que lorsque le quota est atteint la reponse est un array(3) + if(count($GeocodeAPIDataArray)!=3) //parce que lorsque le quota est atteint la reponse est un array(3) { if($debugVerbose) echo "
--- --- ---dépiller le retour ws ---
"; - foreach($googleGeocodeAPIDataArray as $keyL1 => $valueL1) + foreach($GeocodeAPIDataArray as $keyL1 => $valueL1) { if($keyL1 == 'features') { @@ -122,7 +122,7 @@ } else { - echo "
something goes wrong with google geocode api"; + echo "
something goes wrong with geocode api"; } sleep(1); }