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

open trip planner scalibility (or an alternative library)

I am playing around with open trip planner novadays. Actually I will use some parts of the library like base public transportation functions, without bike, roads, streets, etc... functionality. I will only provide bus/subway stops, times, and routes…
myalc
  • 133
  • 1
  • 12
2
votes
5 answers

how do you decode gtfs protobufs in node

I am trying to use https://github.com/dcodeIO/ProtoBuf.js to parse triments gtfs data. Here is the code I have so far, it parses the .proto file correctly and creates the builder and has all the expected properties and methods, it throws an error…
MiGnH
  • 428
  • 4
  • 11
2
votes
2 answers

How to consume GTFS feed in Google Map v3 using Javascript?

I'm first time trying to use GTFS(General Transit Feed Specification) with Google Maps as per the Google developers page i have understood the concept of .txt files which are used as feed and for making a demo i downloaded a transit zip files from…
Vinod Louis
  • 4,812
  • 1
  • 25
  • 46
2
votes
1 answer

How do I use GTFS-realtime to get schedule alerts and delays?

I've been programming PHP for a couple of years, and I'm looking at tackling the GTFS real time feeds. I've downloaded the GTFS files for a specific agency and am parsing them with PHP using the fgetcsv function. What I'm stuck on right now is, how…
user1701252
  • 1,501
  • 1
  • 11
  • 19
2
votes
1 answer

Querying text file into database

My Program needs to be able to scan a text file, and store the values of the text file into a database. Suppose I've read in a line of code that looks like this 3,95003,"ALLENDALE",,41.030902,-74.130957,2893 I want to be able to call a part of the…
The Tokenizer
  • 1,564
  • 3
  • 29
  • 46
1
vote
1 answer

Android Getting Public Transport in Google maps api?

I know there is available api in json format for traveing by public transport instead of driving?
ericlee
  • 2,703
  • 11
  • 43
  • 68
1
vote
1 answer

Bash code with if/else/fi and awk/perl regexps does work outside snakemake but not inside a snakemake rule

I am constructing a snakemake workflow that is working well for the most part. One of the steps requires a ready.gtf file containing certain fields of information in its last column, specifically gene_name and transcript_name. I have thought of some…
apposada
  • 13
  • 2
1
vote
0 answers

Building graph from OSM and GTFS data using OTP

I have a few questions regarding building graph with OTP (OpenTripPlanner) containing GTFS data and OSM data. I am using GTFS and OSM data for Berlin. I read here that OTP version 2 does not support isochrone and surface analysis features. This is…
Jio
  • 578
  • 3
  • 8
  • 27
1
vote
0 answers

gtfs realtime pbf is empty?

I'm using a https://github.com/mapbox/pbf generated JavaScript module for GTFS Realtime (https://github.com/gavinr/gtfs-realtime-pbf-js-module) to load https://data.texas.gov/Transportation/CapMetro-Vehicle-Positions-PB-File/eiei-9rpf and the result…
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
0 answers

Making parent methods return child instance in Python

I would like to overwrite a class (Feed) from gtfs-kit with my own Feed class keeping original methods and adding my own. The problem is: when I call a method from the original class from an instance of my class that return the instance, it return…
1
vote
2 answers

Extracting multiple agencies from a GTFS file

I can use the transitland-lib to extract a single agency from a GTFS file and create a new one like this: sudo ./transitland-linux extract -extract-agency 53 germany.gtfs.zip my_agency.gtfs.zip Is there a convenient way of extracting multiple…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
1
vote
1 answer

Problem for reading UTF-8 file with gtfstools

I'm trying to open a GTFS file that has UTF-8 encoding, but even though I changed my project's encoding in R to UTF-8, the characters are still truncated. The problem can be seen in the "stop_name" column. I'm using windows 10 and I know there are…
Igor
  • 145
  • 8
1
vote
0 answers

Problem with getting correct bus lines from GTFS using php, csv and mysql

I need to get transport data for my mobile app. Especially i would like to get Stop list with bus lines that stops on each bus stop. I downloaded data from this link http://gtfs.ztp.krakow.pl/ Data for buses: GTFS_KRK_A.zip Data for trams:…
1
vote
0 answers

How to generate transit route(s) between two locations with GTFS data for a python folium application

I am trying to create a Python application where I can display the best possible route(s) from one bus stop to another bus stop. I am new to GTFS but I have a basic understanding of the working of the GTFS data. I am trying to figure out how I can…
1
vote
1 answer

How to read application/octet-stream in Python

Building off of this question, I'm using a Python script to call the API detailed in the link below: https://developer.wmata.com/docs/services/gtfs/operations/5cdc51ea7a6be320cab064fe? I use the code below to call the api: import requests # define…
Mike
  • 47
  • 1
  • 6