Comments (3)
Hi @MartijnVerhoeven ,
No problem, you can use the script we use for the full integration tests for San Diego for your case so see the file: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py
Note:
-
until a future update removes the
calendar.txt
requirement, you should create a dummy file to bypass this issue by doing the following: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py#L22-L33 -
then you should examine your
calendar_dates.txt
file and see what columns and values you want to use to select trips from that match your desired operational schedule.- For instance see this example for San Diego in the same file above: https://github.com/UDST/urbanaccess/blob/dev/urbanaccess/tests/integration/integration_sandiego.py#L49-L54
- Note the parameter:
calendar_dates_lookup={'exception_note': ['FINAL', 'WD'], 'schedule_type': 'WD'}
What this is doing is using the columnexception_note
and its getting all the service ids that have the values in the list:'FINAL', 'WD'
(in the case of San Diego this indicates final schedule version and weekday) and also get service ids that that have columnschedule_type
value ofWD
(in the case of San Diego this indicates weekday).
You should be all set after this. We have a more elegant solution for this planned in the pipeline for a future version but have not yet had time to implement it properly yet but this should suffice.
Ill keep this open until you can report back that you successfully got it to work for you.
from urbanaccess.
from urbanaccess.
Great to hear @MartijnVerhoeven ! Will close this issue then.
Yes you could export your nodes to a shapefile using something like this:
import geopandas as gpd
import shapely
point_gdf = gpd.GeoDataFrame(nodes_df, crs={'init': 'epsg:4326'},
geometry=[shapely.geometry.Point(xy) for xy in zip(nodes_df.x, nodes_df.y)])
point_gdf.to_file('net_nodes.shp')
from urbanaccess.
Related Issues (20)
- Hi,
- Hi,
- Kernel appears to have died when saving h5 HOT 3
- Saving network to shapefile HOT 1
- Unicode decode error when trying to load gtfs of buses in Buenos Aires HOT 1
- Needs updating to assure Pandas v.0.23 compatibility HOT 2
- pyrosm for network download HOT 2
- `geopy` 2.0 does not support ` vincenty HOT 1
- integrate_network returning floats instead of ints HOT 10
- gtfs import fails if `calendar_dates.txt` is missing HOT 3
- 403 error with certain transit providers due to missing headers in request HOT 5
- Workflow bug: Destinations for accessibility queries should be linked only to the base network
- Mean wait time vs. mean headway HOT 1
- Multiple networks in memory at once
- Routing that's sensitive to departure time
- Trying to read utf-8 file on cp1252 system HOT 5
- Two feeds not passed into network HOT 3
- Plot does not render title/axis titles
- OSM download function broken HOT 1
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 urbanaccess.