Rename busposition -> buspositions.
This commit is contained in:
parent
23a13bc21d
commit
1fd3b88cf0
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
?>
|
||||
|
|
|
@ -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"]));
|
||||
}
|
||||
|
|
Reference in a new issue