Open kylebarron opened 4 years ago
As of https://github.com/nst-guide/data/commit/452a299f4896861a46124d0d0f9db364a9f62ac1 I have the approx trail geometry, and have code to make networkx graphs much more quickly by using geofabrik extracts.
For finding trail junctions, you can just iterate over nodes that have _trail=True
, and very quickly do G.edges(node_id, data=True)
to see the metadata of the edges that connect to that node.
For finding water intersections, you'll probably want to check out something like
get_nearest_edges
for springs.
https://osmnx.readthedocs.io/en/stable/osmnx.html#osmnx.geo_utils.get_nearest_edges
Create a topologically-connected trail network
Outline
When running Tippecanoe, you need to make sure you use
--no-simplification-of-shared-nodes
so that lines share a node. Then you can probably have simple routing using the vector tiles.Notes:
Uses
Ref: #45, #46, #41, #5, #4