Comments (3)
Hi @cjer. I recommend using ptg.writers.extract_feed
, instead of using write_feed_dangerously
.
inpath = 'mygtfs.zip'
outpath = 'mygtfs-pruned.zip'
agency_ids = ['2', '4']
ptg.writers.extract_feed(inpath, outpath, {
{'routes.txt': {'agency_id': agency_ids}}
})
feed = ptg.feed(outpath)
Does that work for your use case?
from partridge.
Hey! that seems to work great!
docs anyone? :)
from partridge.
I recently added extract_feed
to the docs under "Extracting a new feed" in the Usage section: https://github.com/remix/partridge#usage.
from partridge.
Related Issues (20)
- Read the Docs HOT 10
- "read_trip_ids_by_day" - custom service day hours HOT 9
- detect_encoding very time consuming HOT 4
- Handle hours resetting at midnight HOT 3
- Build functionality to pull GTFS from a URL HOT 6
- Output time format is incorrect HOT 1
- Output date format is incorrect HOT 1
- Float representation of the parsed time is currently incorrect HOT 2
- pypi release missing geopandas integration HOT 3
- Converter for route_id HOT 10
- Crash on string-valued route_type HOT 4
- Frequencies by route for a given time period HOT 1
- load stops that correspond to the trips that are part of the specified service_id HOT 2
- Non-numeric IDs HOT 14
- Busiest day of the service is not exhaustive HOT 4
- cchardet doesn't work with python 3.10+ HOT 3
- numpy attribute issue in gtfs.py HOT 3
- pip package incompatible with numpy 1.25 HOT 2
- New v1.1.2 release including cchardet dependency fix HOT 3
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 partridge.