Comments (1)
Hey francot. Thanks for the interest in gtfsdb. I have a possible solution to what you're asking by way of database schema manipulation (see below). Because of the added complexity in adding an import_id primary key to pretty much to every table and every query, I don't feel this would be the correct solution for gtfsdb. So I'm going to close this issue. But I'm happy to discuss further...
The solution to your problem of maintaining a history of gtfs data may be solved with the use of a db that supports multiple schemas (e.g., postgres, oracle, etc...). You could load new gtfs data into differently named schemas based on import_id (or better ... use feed_info.txt/feed_version as that schema name). For example, I use multiple schemas to load GTFS data from multiple different agencies into the same database. From there, I can make queries of all the data in the different schemas via a where clause (not a great query below, but a decent example):
select *
from "C-TRAN".stops cs, "TRIMET".stops ts
where st_distance(cs.geom, ts.geom) < 0.001
from gtfsdb.
Related Issues (20)
- Materialized View -- current schedule HOT 1
- connect to multiple databases, with different schemas, etc... HOT 1
- What license is used for this repo?
- add current patterns (ala current stops, etc...)
- add route_pattern table (need a current_route_pattern table too?)
- Cannot build on Python 3.8 because the version of psycopg2 is old HOT 1
- switch to requests for http of gtfs file
- post_process shapes: calculate missing shape_dist_traveled
- export sub-schedule of select routes
- Deprecation Warning: joinedload_all() function is deprecated HOT 1
- stop_times: add shape_dist_traveled if it doesn't exist
- stop_times: better fix for missing distance
- Is this repo still maintained? HOT 1
- blocks table: add is_interline and dwell_time columns
- SqlAlchemy - upgrade + version lock + other maintenance tasks HOT 3
- Database ingest times HOT 3
- Improve Docker option - docs, volume and network HOT 2
- Improve docs / install experience -- SqlAlchemy 1.x (not 2.x) is supported version
- SqlAlchemty 2.x
- replace buildout with puppet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtfsdb.