Open dabreegster opened 2 years ago
Actually the real problem I'm trying to solve here is in the GTFS network viewer. You can't click on red routes here, because usually there's a bunch of routes overlapping each other most of the time.
Inspiration: bottom of https://nbviewer.org/github/python-visualization/folium/blob/main/examples/plugin-PolyLineOffset.ipynb. I I already tried this idea out in another case, with max 4 paths: https://github.com/a-b-street/abstreet/pull/939
And I hacked together the same thing for GTFS routes. It looks... interesting. Has potential.
https://user-images.githubusercontent.com/1664407/179259991-d8457a38-850e-47dc-9425-60fa8babb352.mp4
To do this "for real", some things to figure out:
StreetNetwork
. Add pathfinding there and lift the same map_gui
overlapping paths logic to that.Sometimes working great, sometimes still getting "bowties" due to weird crossings like
References for how to do map matching: https://github.com/ad-freiburg/pfaedle
I'm interested in matching the GTFS route shapes to street network data, but not off-the-shelf valhalla/OSRM implementations necessarily. Collecting some notes...