OSMnx · Add edge attributes

The edge attributes that routing, statistics and orientation analysis depend on. Mirrors the Network Attributes panel.

Needs a downloaded network (Download a street network), preferably projected first (Clean up the graph).

1. Edge lengths

Fresh downloads already carry geodesic lengths in meters. Rerun Add Edge Lengths after any geometry edit.

Add Edge Lengths computes per-edge length in meters.

2. Edge speeds

Add Edge Speeds uses the OSM maxspeed tag where it exists and the Fallback Speed field (default 30 km/h) everywhere else.

Add Edge Speeds with a fallback of 30 km/h.

3. Travel times

Add Travel Times derives travel_time from length and speed. Time-based routing and isochrones will not run without it.

Add Travel Times derives travel_time from length and speed.

4. Edge bearings

Compass bearings, 0 to 360 degrees. Required by the orientation entropy and rose in the Statistics tutorial.

Add Edge Bearings computes per-edge compass bearings.

Next steps

Find routes, now that speeds and travel times exist.

Back to top