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
5
votes
1 answer

How to loop through a .txt file and get the values in javascript

Basically I have my code set up like this: function converttxttoArray( filename ) { var reader = (window.XMLHttpRequest != null ) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); …
LearnToday
  • 2,762
  • 9
  • 38
  • 67
5
votes
1 answer

How can a "bearing", in degrees, be derived from a GPRMC NMEA sentence?

I'm writing a program that receives data in the form of GPRMC NMEA sentences and outputs it as specified by GTFS-realtime. GTFS-realtime wants a "bearing" value, and describes it as such: Bearing, in degrees, clockwise from True North, i.e., 0 is…
drewbug
  • 269
  • 4
  • 10
5
votes
0 answers

GTFS major vs minor update

We are downloading new GTFS (basically zip of CSV files) data from multiple sources each day to see if an update has been updated. Right now, we just check if the zip themselves are different, and update if they are different. The thing is, on some…
gcamp
  • 14,622
  • 4
  • 54
  • 85
4
votes
3 answers

Is there a way to access to the database of Google Maps for the public transport?

I'd like to have access to the numbers and type of public transportation and for each of them, their stops of a certain city. So for instance, I'd like to have : Number Type Stops 1 Metro Stop1.1, Stop1.2, Stop1.3, ... 6 Bus …
jozi
  • 316
  • 1
  • 2
  • 14
4
votes
1 answer

Output data got from external API on express get request

From the example code on the gtfs-realtime-bindings library's documentaion, I tried to put similar logic inside my router but was not able to take the result out of request() route.get('/', (req, res) => { const data = []; …
njavig
  • 102
  • 1
  • 12
4
votes
1 answer

Create a pseudo GTFS dataset from AVL (GPS) data in .CSV format

I have an automatic vehicle location (AVL) dataset in .csv format of the public transit system of a city. I would like to use this AVL dataset to build a GTFS dataset for the purpose of running accessibility analysis. I've seen a solution of how to…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
4
votes
1 answer

HTML parser to create GTFS formatted data

There is a transit agency, who doesn't provide GTFS formatted transit schedule data. I would like to make an android application, that can search in it, so this format would be very useful. Transit schedule data has a website, but it seems hard to…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
4
votes
2 answers

Best way to store time above 24:00:00 in postgresql?

I'm storing GTFS feeds into a SQL database and some times are expected to be stored above the 24:00:00 cap on time values. For example, some trains run at 12:30AM, but are listed for the previous days service, and that running time is stored as…
Jimmy Gong
  • 1,825
  • 5
  • 20
  • 35
4
votes
0 answers

Sample GTFS SQL Queries

I've converted GTFS data into a MySQL DB using OpenTransitTools. I'm just getting started with GTFS and wanted some help with some basic SQL queries like: Given the current time, list the positions of all vehicles along a particular route. I'm not…
4
votes
2 answers

GTFS Realtime php

I have a MySQL database setup with GTFS data and I have php scripts that return stop times and I'm looking to add realtime data. I know Google has instructions for how to use gtfs realtime with php…
Chris Schlitt
  • 561
  • 1
  • 4
  • 20
4
votes
2 answers

How can I create my own GTFS feed and trip-planner?

I am a newbie onto GTFS and found some information on my research that said one has to provide the GTFS feed in txt formats to obtain the routes/transit information, etc. Now my question is, 1) If we create our own txt formats, and upload onto the…
Abhilash L R
  • 805
  • 1
  • 9
  • 24
4
votes
1 answer

How do I use a GTFS feed?

I want to use a GTFS feed in Google Maps, but I don't know how to. I want to display the buses available from a route. Just so you know, I'm planning on implementing the Google Map I make in a Visual C# application.
user2481787
  • 143
  • 2
  • 12
4
votes
0 answers

GTFS in OpenTripPlanner

Iam Working on a tripplanner, i got a problem, that my GTFS won't work. The OSM files is loaded in correctly, the tripplanner now makes the fastest route from point A to B, but it does not take busses into consideration. Only walking. My GTFS file…
Andre Mesel
  • 113
  • 1
  • 9
3
votes
2 answers

GTFS and multiple routes

I am working with GTFS format.I have a concern for example consider a little complex network where a user want to travel from a source 'A' to Destination 'B' and actually there exist no direct route from A to B.But we can reach B from A thru a stop…
Sriram
  • 53
  • 5
3
votes
3 answers

I need advise choosing a NoSQL database for a project with a lot of minute related information

I am currently working on a private project that is going to use Google's GTFS spec to get information about 100s of Public Transit agencies, their routers, stations, times, and other related information. I will be getting my information from here…
Daegalus
  • 1,420
  • 1
  • 10
  • 8
1
2
3
18 19