Display the bus stop on a map

This commit is contained in:
George Kaklamanos 2015-07-17 20:03:22 +03:00
parent 18d0b81e79
commit 55f8e78874

View file

@ -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