require_once 'GTFSReader.php';

//print_r("all routes:\n");
//print_r(ShuttleSchedule::getRouteList());

foreach (array(
  //'mit',
  'saferide',
  ) as $agency)
{
  $routes = array();
  foreach (ShuttleSchedule::getActiveRoutes($agency) as $route) {
    $routes[$route] = FALSE;
  }

  $activeroutes = ShuttleSchedule::getRunningRoutes($agency);
  foreach ($activeroutes as $route) {
    $routes[$route] = 'running';
  }
  print_r("$agency routes:\n");
  print_r($routes);

  foreach ($routes as $route_id => $status) {

    echo "\n";
    $route = ShuttleSchedule::getRoute($route_id);
    echo $route->long_name . ' (' . $route_id . "):\n";
    /*
    foreach (ShuttleSchedule::getNextLoop($route_id) as $stop_id => $times) {
      $rawtime = $times[0];
      $time = date('m/d G:i:s', $rawtime);