项目作者: avm99963

项目描述 :
Schedule viewer for the Barcelona subway. -- Mirror of the original repo at Gerrit: https://gerrit.avm99963.com/plugins/gitiles/schedules/
高级语言: PHP
项目地址: git://github.com/avm99963/schedules.git
创建时间: 2020-01-27T02:15:27Z
项目社区:https://github.com/avm99963/schedules

开源协议:MIT License

下载


schedules

Schedule viewer for the Barcelona subway.

Installation

  1. Clone this repository (usually in Apache’s publicly accessible folder).
  2. Install PHP 7.2+ with the ZipArchive and PDO classes (specifically
    install the PDO_SQLITE driver)
  3. Copy the config.default.php file to config.php and fill in the details
    (you can get an API key directly from TMB here.
    • In $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.
  4. Run the cron/parsegtfs.php script regularly to get updated information
    (e.g. once a week).

Notes

  • As I’ve been able to see when using this app around Barcelona, the schedules
    provided by TMB are a very vague approximation of the departure times for all
    lines except for the automated lines. In the case of the automated lines, the
    timing is precise within a second.