From 55f8e7887402cc02a272429919a7e9032d9ba658 Mon Sep 17 00:00:00 2001 From: George Kaklamanos Date: Fri, 17 Jul 2015 20:03:22 +0300 Subject: [PATCH] Display the bus stop on a map --- ShowStop.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ShowStop.php b/ShowStop.php index 30cf009..7072030 100644 --- a/ShowStop.php +++ b/ShowStop.php @@ -3,6 +3,7 @@ uBus - ShowStop + @@ -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 'No such stop. Go back?'; } @@ -47,10 +50,6 @@ function PrintRoutes($stp){ - - - -