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
0 answers

SEPTA Map R Shiny Issue with ObserveEvent

I have the following Shiny Application: rm(list=ls()) # requirements requirement_vector <- c("shiny", "leaflet", "tidyverse", "gtfsr", "dataMeta") lapply(requirement_vector, require, character.only = TRUE) # data load { zip <-…
1
vote
3 answers

Using Google Transit information in Android app

Google transit provides approximate time of the next bus arriving at a particular bus-stop when you click on the bus-stop icon. This works for trains and even metro lines. Is there any way I can use these transit information in my own map view? I…
Urban
  • 2,201
  • 24
  • 52
1
vote
1 answer

How can I get the next 2 stop times for each bus that passes a stop (GTFS data)?

My goal is simple. In my app, the user would press on a stop and it would open a screen displaying each route (bus) that is going by that stop and display the next 2 stop times for each route at that stop. Example of what I want to display when user…
user3614030
  • 481
  • 6
  • 16
1
vote
1 answer

GTFS MySQL Query Column Not Found

Im working with GTFS dataset that I have imported into MySql, Im accessing it with PHP. Im trying to find the trips for a specific route for a given time and date. My Sql query looks like this 'SELECT t.route_id AS route_id, t.service_id AS…
Brian
  • 13
  • 3
1
vote
2 answers

Display GTFS - Routes on a Map without Shapes

I try to consume some GTFS Feeds and work with them. I created a MySQL Database and a Python Script, which downloads GTFS - Files and import them in the right tables. Now I am using the LeafLet Map - Framework, to display the Stops on the map. The…
GulfSo
  • 13
  • 4
1
vote
1 answer

Using node gtfs-realtime-binding to parse MBTA trip updates feed

I would like to use the any of the Feed URLS on this page https://www.mbta.com/developers/gtfs-realtime I added the dependency in a new project folder. then created a file app.js with the code snippet from the github project page…
Akin Hwan
  • 607
  • 1
  • 9
  • 26
1
vote
1 answer

GTFS realtime feed example script

I was able to successfully parse through BART's GTFS realtime Service Alerts and TripsUpdate feed. I also looked at the official protocol buffer for Java tutorial page and was able to compile and run the tutorial.…
axesspwns
  • 113
  • 2
  • 14
1
vote
1 answer

GTFS route planner

I am in the process of creating an application which can tell people when a bus leaves from a certain stop and I would like to add route planning to it. I need a way to plan routes from a stop to another in a couple of seconds. I'm getting my data…
littlecat
  • 71
  • 1
  • 11
1
vote
2 answers

Getting amount of active trips via postgresql loop

I am searching for a way to get the amount of active trips in a GTFS feed for each minute of a day through a postgresql query. For every trip I have the start and endtimes (in seconds) in a denormalized table. It looks something like this: The…
Andi-lo
  • 2,244
  • 21
  • 26
1
vote
1 answer

Using GTFS data, how should i extend it with realtime gtfs?

I am building an application using GTFS data. I am a bit confused when it comes to GTFS-realtime. I have stored all the GTFS information in a database(Mongo), I am able to retrieve stop times of a specific bus stop. So now I want to integrate…
Timothy Leung
  • 1,407
  • 7
  • 22
  • 39
1
vote
1 answer

Create a GTFS realtime (vehicle positions) with R

I work on turning a dataframe into a GTFS realtime, and am struggling on the vehicle position part. My data looks like that (stored in a dataframe called "vehicle"): ## Input data looks that way, one line per on-going vehicle vehicle_id …
Xavier Prudent
  • 1,570
  • 3
  • 25
  • 54
1
vote
1 answer

GTFS Real Time Data: How to Convert Feed Message Print to Terminal to GTFS

I have followed the example from this link Parsing NYC Transit/MTA historical GTFS data (not realtime) which grabs a historical GTFS real time data feed and then use python language bindings to output a gtfs_rt.FeedMessage to the terminal. After I…
Zarni
  • 109
  • 6
1
vote
1 answer

How to group similar GTFS trips

I need to group GTFS trips to human understandable "route variants". As one route can have run different trips based on day/time etc. Is there any preferred way to group similar trips? Trip shape_id looks promising, but is there any guarantee that…
devha
  • 3,307
  • 4
  • 28
  • 52
1
vote
1 answer

Loading Coma Separated Text files to MySQL: doesn't work correctly

I'm trying to load GTFS files (comma separated text files) to a MySQL database. MySQL Workbench Import Wizard doesn't work. I copied agency.txt file to agency.csv and select it with the wizard. Went through all the steps; everything was a green…
melis
  • 1,145
  • 2
  • 13
  • 30
1
vote
1 answer

Parsing NYC Transit/MTA historical GTFS data (not realtime)

I've been puzzling on this on and off for months and can't find a solution. The MTA claims to provide historical data in form of daily dumps in GTFS format here: [http://web.mta.info/developers/MTA-Subway-Time-historical-data.html][1] See for…
SimonR
  • 117
  • 1
  • 8