commit | 6abfed4e657e081c9e8dbeee368e5873ee1ee5ec | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sat Sep 11 16:04:11 2021 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sat Sep 11 16:05:06 2021 +0200 |
tree | 3f849dfde36014c3893454d991a0d3d5ba2b9947 | |
parent | d4bf2d073d650810b627347ebb0ea416203fabdc [diff] |
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.
ZipArchive
and PDO
classes (specifically install the PDO_SQLITE
driver)config.default.php
file to config.php
and 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 files
folder there and set the variable to /var/www/html/schedules/files/gtfs.sqlite3
.cron/parsegtfs.php
script regularly to get updated information (e.g. once a week).