Show approaching buses on the map.

This commit is contained in:
George Kaklamanos 2016-02-21 21:25:15 +02:00
parent 2f96304eed
commit 1ccd9bcbdc

View file

@ -29,7 +29,7 @@ if (isValidStop($_GET["stop"])){
echo '<div id="routes" class="tab-pane fade in active" role="tabpanel">';
PrintRoutes($_GET["stop"]);
echo '</div><div id="map" class="tab-pane fade" role="tabpanel">';
ShowMap(array(array($stop['lat'],$stop['lon'])),[]);
ShowMap(getPositionOfApproachingStop($stop['id'],'go'),getPositionOfApproachingStop($stop['id'],'come'),array(array($stop['lat'],$stop['lon'])));
echo '</div></div>';
} else {
echo '<span style="display:inline-block" class="alert alert-danger" role="alert">No such stop. <a href="javascript:history.back()">Go back?</a></span>';