network-wrangler / network_wrangler

A Python Library for Managing Travel Model Network Scenarios
https://wsp-sag.github.io/network_wrangler/
Apache License 2.0
15 stars 4 forks source link

Optionally visualize transit shapes gdfs using roadway true shape. #115

Open e-lo opened 5 years ago

e-lo commented 5 years ago

As a user who wants to view shapes that are aligned with the real roadway network, I'd like resulting transit shapes and stoptimes to be viewable using the "real shapes" from the roadway network rather than just lines from A to B

Could be implemented without too much trouble at this point:

Add optional shapes_gdf param in: https://github.com/wsp-sag/network_wrangler/blob/selection-refactor/network_wrangler/transit/feed/transit_links.py

Call with road_net.shapes_df in transit/network.py

josiekre commented 5 years ago

Beware that a model node ID is not unique to a stop_id. Use the model node ID sequence/list in shapes.txt rather than the stop_id sequence/list in stop_times.

e-lo commented 5 years ago

Also consider using geopandas schemas for shapes again

e-lo commented 3 weeks ago

Could be implemented without too much trouble at this point:

Add optional shapes_gdf param in: https://github.com/wsp-sag/network_wrangler/blob/selection-refactor/network_wrangler/transit/feed/transit_links.py

Call with road_net.shapes_df in transit/network.py