Questions tagged [gtfs]

The General Transit Feed Specification (GTFS) defines a common format for public transportation schedules and associated geographic information.

The General Transit Feed Specification (GTFS) defines a common format for public transportation schedules and associated geographic information. GTFS "feeds" allow public transit agencies to publish their transit data and developers to write applications that consume that data in an interoperable way. GTFS-realtime is an extension to GTFS that allows public transportation agencies to provide realtime updates about their fleet to application developers.

273 questions
1
vote
2 answers

Python HTTP Request Returns 404 or Bytes

I'm trying to use a Python script to call the API detailed in the link below: https://developer.wmata.com/docs/services/gtfs/operations/5cdc51ea7a6be320cab064fe? When I use the code below, it always returns a 404 error: import requests import…
Mike
  • 47
  • 1
  • 6
1
vote
2 answers

Javascript to download and process GTFS zip file

I try to download, unzip and process a GTFS file in zip format. Downloading and unzipping are working, but I get error message when try to use txt files with gtfs-utils module in gtfsFunc(). Output is undefined. Delays are hardcoded just for testing…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
1
vote
0 answers

Get GTFS data from ZIP file in Javascript

I need to get gtfs data and show raw data on screen. I tried to use gtfs-stream module, but not sure, how to get data from it. var gtfs_source = 'https://www.bkk.hu/gtfs/budapest_gtfs.zip' request.get(gtfs_source).pipe(gtfs.enhanced()).on('data',…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
1
vote
1 answer

Is it possible to force the Google Maps API to use a specific Transit Provider

I am writing an app (in react) that provides an ETA to a user on a train for when they will reach the next NJTransit station based on their location. I would like to use Google Maps, but I do not see a way to ensure it will only use NJTransit. For…
1
vote
0 answers

Is it possible to partially calculate the graphs of Open Trip Planner?

I have a question about Open Trip Planner. In the project I'm working on I've automated the download of GTFS files whenever an update is available. Every time my server downloads a new update, however, it is recreating the entire graph (including…
1
vote
1 answer

"Illegal group end indicator...(not a group)" when decoding gtfs-r data

I'm trying to use a node.js app to regularly decode some gtfs-realtime data. It's mostly running fine, but every few hours I run into an error that crashes my app. The error message in my log says that there is an "Illegal group end indicator for…
garson
  • 1,505
  • 3
  • 22
  • 56
1
vote
0 answers

Historical GTFS data

I'm trying to obtain a couple of weeks worth of historical train performance (delay) data on trains arriving at Central Station (id=600016...600024), Brisbane, Australia for research purposes. I found a package called gtfsway developed by…
Zeus
  • 1,496
  • 2
  • 24
  • 53
1
vote
1 answer

Appending a dataframe row with specific values of other dataframes - python

I am working on implementing the Connexion Scan Algorithm in python because I need to have access to shortests public transport paths. So I am trying to create a connexion table from gtfs files. I have a dataframe (stop_times) that contains the…
I.M.
  • 344
  • 3
  • 14
1
vote
2 answers

Python convert GTFS time to datetime

It is common for a GTFS time to exceed 23:59:59 due to the timetable cycle. Ie, the last time may be 25:20:00 (01:20:00 the next day), so when you convert the times to datetime, you will get an error when these times are encountered. Is there a way…
theotheraussie
  • 495
  • 1
  • 4
  • 14
1
vote
3 answers

Cannot read property 'decode' of undefined

I have been playing around with the General Transit Feed Specification - Realtime, and I am following exactly the example given on google's documentation: https://developers.google.com/transit/gtfs-realtime/examples/nodejs-sample for JavaScript,…
Alex Fisher
  • 23
  • 1
  • 5
1
vote
0 answers

Adding a geojsonlayer for react

I have some geojson data that I have created from a gtfs realtime feed, I am trying to add it to a mapbox map. My Map currently displays fine and I can get it to render markers, however I am having issues with rendering geojson data.
1
vote
3 answers

How provide a route to download binary file in Odoo 10

I am trying to create a route in Odoo 10 to download a binary file for gtfs real-time updater. I searched in Odoo documentation but I didn't find any similar This is my controller for test download binary file: class GtfsRt(http.Controller): …
israteneda
  • 705
  • 1
  • 14
  • 26
1
vote
1 answer

How to work with gtfs real time in OpenTripPlanner

I am working with opentripplanner to show trips and stops and I can work fine with GTFS. Now, I want to work with GTFS Real Time, but I don't know how to generate pb files. What are the first steps to work with GTFS Real Time?
User404
  • 11
  • 2
1
vote
0 answers

GTFS-RT txt-file as JSON-data

I am working on a simple PHP code which is supposed to extract specific data from a txt-file. The txt-file comes from a GTFS-RT API. I would like to keep it as simple as possible, and thereby not use the protocol-buffer file. I am having trouble…
Lundqan
  • 43
  • 7
1
vote
2 answers

Serializing ProtoBuf through IHttpHandler yields invalid results

I am using ASP.NET WebForms, which means I will be sending Protobuf data via ASPX or ASHX pages. I am attempting to build a GTFSRT file, for which there is a Nuget package called GTFSRealTimeBindings. This uses Protobuf and Protobuf-net to compress…
Ben Haynie
  • 115
  • 9