Schedule viewer for the Barcelona subway.
PDOclasses (specifically install the
config.phpand fill in the details (you can get an API key directly from TMB here.
$conf["databaseFile"]enter the absolute path of the location where you want to save your database (including the file name). If the website is located in the
/var/www/html/schedules/folder, you can create a new
filesfolder there and set the variable to
cron/parsegtfs.phpscript regularly to get updated information (e.g. once a week).