3

Is there any way in osmnx or networkx to subdivide/resample/split street edges based on a maximum length?

I'm doing shortest path routing based on addresses, but my maps often don't have enough node resolution to put a node close enough to each address. Subdividing edges would allow me to insert more nodes.

1 Answers1

1

Check out this OSMnx PR which includes some discussion of subdividing edges into 50 meter chunks.

In particular, you can use OSMnx's redistribute_vertices function which borrows logic from this stackoverflow QA.

gboeing
  • 5,691
  • 2
  • 15
  • 41