Skip to content

Commit

Permalink
refactoring: renomage variable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Arno153 committed Mar 9, 2019
1 parent 9f59bb8 commit 275a0ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cron/stationLocationHasMoved.php
Expand Up @@ -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</br>";
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 "</br> --- --- ---dépiller le retour ws --- </br>";
foreach($googleGeocodeAPIDataArray as $keyL1 => $valueL1)
foreach($GeocodeAPIDataArray as $keyL1 => $valueL1)
{
if($keyL1 == 'features')
{
Expand Down Expand Up @@ -122,7 +122,7 @@
}
else
{
echo "<br> something goes wrong with google geocode api";
echo "<br> something goes wrong with geocode api";
}
sleep(1);
}
Expand Down

0 comments on commit 275a0ad

Please sign in to comment.