Rename busposition -> buspositions.

This commit is contained in:
George Kaklamanos 2016-02-20 19:52:05 +02:00
parent 23a13bc21d
commit 1fd3b88cf0
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?php
$routes = json_decode(file_get_contents("data/routes.json"), true);
$stops = json_decode(file_get_contents("data/stops.json"), true);
$busposition = json_decode(file_get_contents("data/busposition.json"), true);
$buspositions = json_decode(file_get_contents("data/buspositions.json"), true);
?>

View file

@ -113,9 +113,9 @@ function getLines(){
}
function getPositionOfRoute($rt){
global $busposition;
global $buspositions;
$locations = array();
foreach ($busposition as $bus){
foreach ($buspositions as $bus){
if($bus["routeid"] == $rt){
array_push($locations,array($bus["lat"],$bus["lon"]));
}