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>
|
<head>
|
||||||
<title>uBus - ShowStop</title>
|
<title>uBus - ShowStop</title>
|
||||||
<?php include 'head.php'; ?>
|
<?php include 'head.php'; ?>
|
||||||
|
<?php include 'map.php'; ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php include 'nav.php'; ?>
|
<?php include 'nav.php'; ?>
|
||||||
|
@ -20,6 +21,8 @@ include 'libdata.php';
|
||||||
|
|
||||||
if (isValidStop($_GET["stop"])){
|
if (isValidStop($_GET["stop"])){
|
||||||
PrintRoutes($_GET["stop"]);
|
PrintRoutes($_GET["stop"]);
|
||||||
|
$stop=getStopInfo($_GET["stop"]);
|
||||||
|
ShowMap($stop['lat'],$stop['lon']);
|
||||||
} else {
|
} 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>';
|
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'; ?>
|
<?php include 'foot.php'; ?>
|
||||||
</body>
|
</body>
|
||||||
</html
|
</html
|
||||||
|
|
Reference in a new issue