Desire Line Analysis

Statistics
Introduced by
Transportation planning tradition (urban transportation studies)
Year
1955
Type
Mapping and analysis of origin–destination travel demand as straight flow lines
Family
Flow mapping and spatial interaction visualization

What does it do?

Desire line analysis maps travel demand between places by drawing a straight line for each origin–destination pair with a non-zero flow, with line width or weight proportional to the number of trips between them.

The term comes from transportation planning, where a desire line is the direct path a traveller would take if no network constrained the journey, so the lines show where people want to go rather than how the roads direct them. Aggregating trips into an origin–destination matrix and rendering it this way makes the dominant corridors of movement visible.

The intuition behind the method

Strip away the roads and ask only where people want to go. Draw a line from each starting zone to each destination zone and make it thicker the more people make that trip, and a pattern emerges from the tangle: heavy lines converging on a city centre, bundles pointing at a campus or station, and faint threads for trips few people make. The straightness is deliberate. It ignores the existing network and shows raw demand, so the analyst can see corridors that current infrastructure may serve well, poorly, or not at all. Desire lines are the demand-side complement to network analysis, which describes the supply side.

History

Desire lines are associated with urban transportation planning, where origin–destination travel demand was commonly mapped as straight lines to inform decisions about roads and transit. The approach belongs to the wider urban travel forecasting tradition. Digital GIS tools later made such maps routine to produce, although very large matrices still need the filtering and bundling described above.

When to use it

Choose desire line analysis when the question is where travel demand runs between zones and you already hold an origin–destination matrix with zone locations. It suits screening of commuting, transit, cycling, migration, or freight flows before any routing or modelling, communicating demand to stakeholders, and spotting corridors where strong demand meets weak infrastructure. Do not use it when the routed path matters, because a straight line is not a route and network or flow-mapping methods are needed. It is also a poor choice when the number of zones is so large that even filtered lines overwhelm the map, or when the directional asymmetry of flows must be read precisely, since undirected straight lines can hide it.

Limitations and considerations

  • Straight lines ignore the real network, so they show demand geometry, not achievable routes.
  • Dense matrices produce visual clutter that filtering only partly resolves.
  • Results depend on zone definition and centroid placement, so changing the zoning can change which corridors appear dominant (the modifiable areal unit problem).
  • Overlapping and crossing lines can make it hard to judge which flows are largest or where they concentrate.
  • Undirected straight lines hide flow direction. Paired flows can be drawn as offset directed lines or shown as net flows, but the default design shows no direction unless one of these is applied.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Shows the geography of travel demand independently of the current network, so demand is not confused with existing routes.
  • Requires only an origin–destination matrix and zone centroids; no routing step is needed.
  • Gives non-technical audiences a direct view of which corridors carry the most demand.
  • Makes demand–supply mismatches visible where strong desire lines lack adequate infrastructure.

Applications

  • Mapping commuting flows between residential and employment zones to plan transit and roads.
  • Assessing cycling potential by visualizing short-distance desire lines suitable for bike trips.
  • Visualizing public-transport ridership demand to prioritize routes and frequencies.
  • Displaying migration or freight flows between regions for regional planning.
  • Identifying corridors where strong demand is poorly served by existing infrastructure.

How it works

How it works

1

The raw material is individual trips, aggregated into an origin–destination matrix T_ij that counts the trips from each origin zone i to each destination zone j. Trips may come from travel surveys, ticketing or mobile-phone data, commuting censuses, or model outputs. The zones are usually administrative areas or traffic-analysis zones, and aggregation turns many individual movements into a compact flow table.

Formula
T_{ij} = \sum_{\text{trips}} \mathbb{1}\{o = i,\, d = j\}
2

Each non-zero matrix cell T_ij with i ≠ j becomes a straight line L_ij between the centroid of origin zone i and the centroid of destination zone j. The actual route taken is deliberately ignored. The line's width, colour, or opacity is scaled in proportion to the flow T_ij, so heavy movements appear as bold lines and minor ones as faint lines. Intrazonal cells, where i = j, join a centroid to itself and give zero-length lines, so they are not drawn. Their volume should be reported separately, because leaving them out understates local trips in the total. Together these weighted lines form the desire line map, which encodes the inter-zonal part of the flow matrix geographically.

Formula
L_{ij} = \overline{c_i\, c_j},\qquad \text{width} \propto T_{ij}
3

A full origin–destination matrix produces a dense, hard-to-read tangle of lines, so flows are filtered. A threshold τ removes lines below a minimum volume, top-n filtering keeps only the strongest flows, and edge-bundling or aggregation merges nearby lines into thicker corridors. The threshold can be set as an absolute trip count or as a share of total inter-zonal trips, and it can be adjusted until the map shows a readable number of lines. A useful check is whether the filtered map still contains the corridors that carry most of the demand. Filtering also reshapes the picture. A cut-off or bundling step can make a moderate corridor look weaker, or merge two flows into one apparently dominant corridor, so the threshold should be reported with the map and the result tested for sensitivity to it.

Formula
\text{draw } L_{ij} \iff T_{ij} \ge \tau
4

Once the clutter is reduced, the map is read for structure. The thickest lines mark the pairs with the largest flows, which are the strongest candidates for dominant corridors. Radial bundles can indicate demand converging on employment or service hubs, and conspicuous gaps where strong desire lines lack good infrastructure may point to poorly served demand. Planners use these readings to set priorities for transit routes, road investment, and cycling networks. The dominant-corridor expression in the mechanics returns only the single largest pair. To read several strong corridors, rank the flows by T_ij and take the k largest.

Formula
\text{dominant corridors} = \arg\max_{(i,j)} T_{ij}

Common pitfalls

  • Plotting every flow without thresholding or bundling, which produces an unreadable tangle.
  • Treating a straight desire line as a route and inferring infrastructure needs from its path.
  • Using large zones whose centroids lie far from the real trip ends, which distorts line origins and directions.
  • Ignoring flow direction when the volumes in the two directions of a pair differ substantially.

Frequently asked questions

Why are desire lines drawn straight instead of along roads?

The straight line deliberately abstracts away the existing network to show pure demand — where people want to go regardless of how the current infrastructure forces them to travel. This makes desire line analysis the demand-side complement to network routing, and it is precisely the straightness that lets planners spot corridors where strong demand is not yet matched by good infrastructure. If you need the actual travelled path, you route the flows over the network instead, which is flow-mapping analysis.

How do you stop a desire line map from becoming an unreadable hairball?

Because a full OD matrix has thousands of cells, you must filter and simplify: apply a volume threshold to drop minor flows, keep only the top-n strongest lines, or use edge-bundling to merge nearby lines into corridors, and encode volume through width, opacity, or colour so dominant flows stand out. The goal is to preserve the analytically important structure — the heavy corridors and the gaps — while removing the clutter of countless small flows.

How does desire line analysis relate to gravity and spatial interaction models?

Desire line analysis visualizes an origin–destination flow matrix, while gravity and spatial interaction models predict the values in that matrix from zone sizes and the cost of travel between them. The two are complementary: a spatial interaction model generates or completes the OD matrix, and desire lines render it geographically so the predicted demand can be inspected, validated, and communicated. Desire lines are thus a natural display layer for the output of interaction models.

Related methods

Sources

  1. Boyce, D. E., & Williams, H. C. W. L. (2015). Forecasting Urban Travel: Past, Present and Future. Edward Elgar, Cheltenham.

    ISBN: 9781848440319