Networks & Routing

Distance along the street, not across the rooftops.

Straight-line distance is a decent proxy until a river, a railway or a one-way system says otherwise — and then it is wrong in exactly the places the analysis is about. These guides build a routable street graph from OpenStreetMap, snap real addresses onto it, measure shortest paths by distance and by travel time, scale to thousands of origin-destination pairs, and cut travel-time isochrones — with the disconnected components and unit mix-ups that produce confidently wrong answers.

11 Steps in this path

The full path, in order

11 guides: the concepts underneath the work, then each task, then the errors that task produces. Work down, or jump to the step you need.

  1. How to Build a Street Network Graph in Python with OSMnx street network graph python ⚙️ How-To
  2. Your Street Network Graph Is Disconnected or Missing Streets osmnx graph disconnected 🔧 Fix
  3. Network Distance vs Straight-Line Distance Explained network distance vs straight line 🧭 Concept
  4. How to Snap Points to a Street Network in Python snap points to network python ⚙️ How-To
  5. How to Calculate the Shortest Path Along a Street Network shortest path street network python ⚙️ How-To
  6. NetworkX Says No Path Exists Between Two Nodes networkx no path exists 🔧 Fix
  7. Street Network Routing Returns Absurd Distances routing wrong distance 🔧 Fix
  8. How to Measure Network Distance for Many Origin-Destination Pairs network distance matrix python ⚙️ How-To
  9. Isochrones Explained: Travel Time Areas and What They Assume isochrones explained 🧭 Concept
  10. How to Generate Isochrones in Python generate isochrones python ⚙️ How-To

Topics this path covers

A path is a route; a topic is everything the site has on a subject. Open a topic to see the guides this path skips.

Other ways in