Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.04 KB

Draft Generating a GTFS Real Time Feed using PHP 8.1

Building

The folder build was generated like this:

Purpose

The idea is to generate GTFS-RT data from a feed that delivery realtime data in JSON with custom IDs. See fixtures/realtime-day.json. The feed also supplies to routes (see routes.json)

This data needs to be mapped to our GTFS using mapping tables (t.b.d.).

Installation

  • PHP8.1 is installed
  • clone repo
  • composer install
  • Point your webserver to public/index.php
  • It will display some mocked GTFS-RT data which can be feed to OpenTripPlanner v2 with the following router-config.json
{
    "updaters": [
    {
      "type" : "stop-time-updater",
      "frequencySec" : 10,
      "backwardsDelayPropagationType" : "ALWAYS",
      "url" : "http://gtfsrt.localhost/",
      "feedId" : "1"
    }
  ]
}