|
|
|
@ -131,10 +131,14 @@
|
|
|
|
|
echo "<h2>停留所{$stop} – $stop_name</h2>";
|
|
|
|
|
|
|
|
|
|
echo '<div class="grid-wrapper">';
|
|
|
|
|
|
|
|
|
|
$now = intdiv(time(), 60);
|
|
|
|
|
foreach($json->departures as $bus) {
|
|
|
|
|
if($bus->actual) {
|
|
|
|
|
$time = str_replace(" Min", "分", $bus->departure_text);
|
|
|
|
|
$time = str_replace("Due", "今すぐ", $time);
|
|
|
|
|
$minutes = intval($time);
|
|
|
|
|
$time .= '<br>(' . date('H:i', $bus->departure_time) . ')';
|
|
|
|
|
} else {
|
|
|
|
|
$time = date('H:i', $bus->departure_time);
|
|
|
|
|
}
|
|
|
|
|