Check if input is a valid stop id

This commit is contained in:
George Kaklamanos 2015-07-16 20:13:06 +03:00
parent 7e5b91a73f
commit 48bd4135f7

View file

@ -54,6 +54,17 @@ function isValidLine($line){
return false;
}
function isValidStop($stp){
global $stops;
foreach ($stops as $stop){
if ($stop['id'] == $stp){
return true;
}
}
return false;
}
function getRouteInfo($id){
global $routes;
foreach ($routes as $route){