Display the bus stop on a map
This commit is contained in:
parent
18d0b81e79
commit
55f8e78874
1 changed files with 3 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<title>uBus - ShowStop</title>
|
||||
<?php include 'head.php'; ?>
|
||||
<?php include 'map.php'; ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'nav.php'; ?>
|
||||
|
@ -20,6 +21,8 @@ include 'libdata.php';
|
|||
|
||||
if (isValidStop($_GET["stop"])){
|
||||
PrintRoutes($_GET["stop"]);
|
||||
$stop=getStopInfo($_GET["stop"]);
|
||||
ShowMap($stop['lat'],$stop['lon']);
|
||||
} 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>';
|
||||
}
|
||||
|
@ -47,10 +50,6 @@ function PrintRoutes($stp){
|
|||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php include 'foot.php'; ?>
|
||||
</body>
|
||||
</html
|
||||
|
|
Reference in a new issue