Skip to content

AddisMap/addismaptransit-gtfsrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
  ]
}

About

GTFS RealTime generation using PHP8.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages