This repository has been archived on 2025-07-13. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
open-heraklion-bus/GenBusposition.php

15 lines
414 B
PHP
Raw Permalink Normal View History

2016-02-21 15:39:36 +02:00
<?php
$positions = array();
foreach ($routes as $route){
print_r($route);
foreach (BusPosition($route['id'], 'go') as $p){
array_push($positions, $p);
}
foreach (BusPosition($route['id'], 'come') as $p){
array_push($positions, $p);
}
}
file_put_contents('data/buspositions.json', json_encode($positions, JSON_UNESCAPED_UNICODE));
?>