|author||Adrià Vilanova Martínez <email@example.com>||Sat Sep 11 16:04:11 2021 +0200|
|committer||Adrià Vilanova Martínez <firstname.lastname@example.org>||Sat Sep 11 16:05:06 2021 +0200|
Fix DB schema to match GTFS specification The fact that the DB schema was incompatible with the GTFS specification (https://developers.google.com/transit/gtfs/reference) caused the app to stop working. This CL fixes this issue. Change-Id: Ic8603d8026d8cee4853b02f5d67ec7e068b982d4
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).