gtfs

org.neo4j.kernel.GraphDatabaseQueryService No dependency satisfies interface

南楼画角 提交于 2019-12-10 18:08:25
问题 I am just writing a simple program where I am uploading my GTFS files to Neo4j Spatial. I believe it's some configuration error or some problem with Neo4j-spatial libraries, which is why I am not uploading my code which is quite basic as specified here: I imported all the required libraries of neo4j: <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>3.2.8</version> </dependency> <dependency> <artifactId>neo4j-spatial</artifactId> <groupId>org.neo4j</groupId>

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

若如初见. 提交于 2019-12-10 11:16:45
问题 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 Google developers page. but I'm not getting how to use those transit files to show information on map. I tried to search tutorial for the same but could not find anything useful. Do i need to parse all those files to show in map or there is

C# Get Full File Path

自作多情 提交于 2019-12-10 10:13:44
问题 I have an ASP FileUpload control and I am uploading: C:\Documents and Settings\abpa\Desktop\TTPublisher\apache-tomcat-6.0.26\webapps\ttpub\WEB-INF\classes\org\gtfs\tmp\GTFS_Rail\routes.txt What is the C# code to grab this entire string using the code below: var pathOfCsvFile = Server.MapPath(ImportRoutes.FileName); var adapter = new GenericParsing.GenericParserAdapter(pathOfCsvFile); DataTable data = adapter.GetDataTable(); I know that Server.MapPath needs to change. UPDATE: Using System.IO

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

跟風遠走 提交于 2019-12-08 03:47:22
问题 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 yourself by downloading the example they provide, in this case Sep, 17th , 2014: [https://datamine-history.s3.amazonaws.com/gtfs-2014-09-17-09-31][1] My problem? The file is gobbledygook. It does not follow GTFS specifications, has no extension, and when

How can I make my GTFS queries run faster?

倖福魔咒の 提交于 2019-12-04 13:35:09
I'm trying to play with a GTFS database, namely the one provided by the RATP for Paris and its suburbs. The set of data is huge . The stop_times table has 14 million rows. Here's the tables schemas: https://github.com/mauryquijada/gtfs-mysql/blob/master/gtfs-sql.sql I'm trying to get the most efficient way to get the available routes at a specific location. As far as I understand the GTFS spec, here are the tables and their links from my data (lat/lon) to the routes: stops | stop_times | trips | routes -----------+----------------+------------+-------------- lat | stop_id | trip_id | route_id

Associating nearby points with a path

懵懂的女人 提交于 2019-12-04 13:14:18
Given a set of ordered points, and a path made up of ordered lat,lon points that goes near those points (in lat/lon coordinates), I want to associate the points with the path, ideally with good algorithmic complexity (n*log(n)) or better, but maybe that might not be realistic. The below diagram illustrates my question better. The blue line is the ordered path that is provided, and the red points are in the same order as the blue line. The green path is my desired result, which merges the red points and the blue line into a new ordered path. Some threshold would have to be set for the distance

How do I use calendar exceptions to generate accurate schedules using GTFS?

大城市里の小女人 提交于 2019-12-04 06:29:02
问题 I'm having trouble figuring out the GTFS query to obtain the next 20 schedules for a given stop ID and a given direction. I know the stop ID, the trip direction ID, the time (now) and the date (today) I wrote SELECT DISTINCT ST.departure_time FROM stop_times ST JOIN trips T ON T._id = ST.trip_id JOIN calendar C ON C._id = T.service_id JOIN calendar_dates CD on CD.service_id = T.service_id WHERE ST.stop_id = 3377699724118483 AND T.direction_id = 0 AND ST.departure_time >= "16:00:00" AND ( ( C

Bus public transport algorithm

ⅰ亾dé卋堺 提交于 2019-12-03 02:02:12
问题 I am working on an offline C# application that can find bus routes. I can extract the timetable/bus/route data. I am searching for the most simple solution that will work with basic data. What algorithm can be used to find a route from bus stop "A" to bus stop "B"? Is there a open-source solution ready for C#/Java? Is the google GTFS format for database good for a simple solution? http://code.google.com/transit/spec/transit_feed_specification.html Thanks for any help. I am stuck with this. I

Bus public transport algorithm

最后都变了- 提交于 2019-12-02 15:39:07
I am working on an offline C# application that can find bus routes. I can extract the timetable/bus/route data. I am searching for the most simple solution that will work with basic data. What algorithm can be used to find a route from bus stop "A" to bus stop "B"? Is there a open-source solution ready for C#/Java? Is the google GTFS format for database good for a simple solution? http://code.google.com/transit/spec/transit_feed_specification.html Thanks for any help. I am stuck with this. I don't know where to start - how to store the data and how to find routes. I know about Dijkstra/A* but

How do I use calendar exceptions to generate accurate schedules using GTFS?

安稳与你 提交于 2019-12-02 08:40:02
I'm having trouble figuring out the GTFS query to obtain the next 20 schedules for a given stop ID and a given direction. I know the stop ID, the trip direction ID, the time (now) and the date (today) I wrote SELECT DISTINCT ST.departure_time FROM stop_times ST JOIN trips T ON T._id = ST.trip_id JOIN calendar C ON C._id = T.service_id JOIN calendar_dates CD on CD.service_id = T.service_id WHERE ST.stop_id = 3377699724118483 AND T.direction_id = 0 AND ST.departure_time >= "16:00:00" AND ( ( C.start_date <= 20140607 AND C.end_date >= 20140607 AND C.saturday= 1 ) // regular service today AND ( (