A flow map shows movement between places. Each line joins an origin and a destination, and its width shows how much moves between them: passengers, commuters, containers, money. It is the map form of an origin-destination table.
This guide explains how flow maps work, what data they need, and the decisions that make one readable. As a worked example we mapped the air passengers carried between European countries in 2024, from Eurostat's official statistics, and added the driving time between the capitals of the largest pairs, computed with our routing API.
What a flow map is
A flow map is a thematic map that uses lines to represent movement between locations. Three things define one:
- The places. Origins and destinations, each with a coordinate: a city, an airport, a country centroid.
- The volume. One number per pair of places, such as 29 million passengers a year.
- The line. Its width encodes the volume. Its path can be straight, curved, or follow the real route.
The technique is older than most thematic maps. The first known flow maps were drawn by the engineer Henry Drury Harness in 1838, showing cargo traffic in Ireland. Charles Joseph Minard published dozens in the 1850s and 1860s, including his 1869 map of Napoleon's march on Moscow.
Types of flow maps
- Origin-destination maps join pairs of places directly. They can radiate from a single origin, such as all flights from one airport, or connect many places as a network, as in the map below.
- Distributive flow maps start from one origin and split into branching bands, the style Minard is best known for.
- Network flow maps draw volumes along the actual roads, railways or rivers, so the line follows the route. Traffic counts on a road network are the typical case.
- Continuous flow maps show wind, ocean currents or other fields as streamlines, with no discrete origins.
This article is about the first kind, which is what most people mean by a flow map in data visualization.
The data behind it: an origin-destination table
A flow map is drawn from a table with three columns: origin, destination and volume. Arranged with origins as rows and destinations as columns, the same data is an origin-destination (OD) matrix.
A distance matrix has the same shape, but each cell holds the travel time or distance between two places. A flow map needs volumes. The two combine well: the volume tells you how many people move, and the travel time tells you how hard the trip is.
Worked example: Europe's air passenger flows in 2024
Eurostat publishes air passengers carried between every pair of reporting countries in its dataset avia_paocc. For 2024 it holds 570 country pairs with data, which together add up to 490.3 million passengers carried. The map shows the 25 largest pairs.
The largest flows connect Germany, France and the Benelux with the Mediterranean countries, and Germany with Turkey:
| Country pair | Passengers 2024 | Capital to capital by road | Driving time |
|---|---|---|---|
| Germany and Spain | 29,081,966 | Berlin to Madrid, 2,412 km | 21.5 h |
| Germany and Turkey | 21,198,627 | Berlin to Ankara, 2,640 km | 23.3 h |
| Spain and Italy | 20,594,385 | Madrid to Rome, 1,959 km | 17.1 h |
| Spain and France | 16,498,995 | Madrid to Paris, 1,330 km | 11.8 h |
| France and Italy | 13,864,579 | Paris to Rome, 1,470 km | 12.7 h |
| Germany and Italy | 12,910,014 | Berlin to Rome, 1,514 km | 13.8 h |
| Spain and Netherlands | 10,026,156 | Madrid to Amsterdam, 1,834 km | 16.3 h |
| Germany and Greece | 9,649,148 | Berlin to Athens, 2,340 km | 21.6 h |
| France and Portugal | 8,121,924 | Paris to Lisbon, 1,757 km | 15.5 h |
| Spain and Portugal | 7,150,375 | Madrid to Lisbon, 625 km | 5.5 h |
Four observations from the data.
A few pairs carry much of the traffic. The 10 largest pairs account for 30.4 percent of all passengers between country pairs, and the 25 on the map for 46.2 percent. That concentration is what makes a flow map of the top pairs honest: the lines left out are individually small.
Spain is the hub of the map. Spain is at one end of 9 of the 20 largest flows, Germany of 7 and Italy of 6. On the map, most of the thick lines converge on the Iberian peninsula.
Few of these trips are easy by road. Among the 20 largest pairs, only two connect capitals less than 7 hours apart by car: Madrid and Lisbon (5.5 hours) and Vienna and Berlin (6.9 hours). Berlin and Paris take 9.9 hours. The largest flow, Germany and Spain, is 21.5 hours of driving between the capitals. Madrid to Dublin needs a ferry and 24.1 hours.
Roads are longer than the lines on the map. The road from Berlin to Madrid is 2,412 km against 1,869 km in a straight line, 29 percent longer. From Athens to Rome by road it is 2,383 km against 1,051 km, because the route runs around the Adriatic.
Direction: arrows or no arrows
A flow map can show direction with arrowheads, tapered lines, or two separate lines per pair. Whether you need that depends on the data.
For air travel over a full year, the two directions are nearly equal, because most passengers fly back. Germany reported 14,460,249 passengers on departures to Spain in 2024 and 14,464,307 on arrivals from Spain, a difference of 0.03 percent. Across the 12 largest pairs, the difference between the two directions is never more than 1.83 percent. The map therefore draws one line per pair with no arrowheads, and its legend says "both directions".
Migration, commuting into a city, or freight from a port are different: there the imbalance is the story, and each direction needs its own line or an arrow.
How to make a flow map readable
Flow maps get cluttered fast: 570 pairs drawn at once would be a solid blue mass. These are the choices that matter.
- Filter to the largest flows. Show the top 20 to 50 pairs, or every flow above a threshold, and say in the caption what was left out.
- Scale width linearly with the volume. A line has one visible dimension, so width in proportion to the value reads correctly. This is the difference from a proportional symbol map, where circles need area scaling.
- Curve the lines. A gentle curve separates flows that share an endpoint and keeps two directions apart when you draw both. Bend all lines the same way so the pattern stays regular.
- Draw the thickest lines first so thin lines stay visible on top, and use some transparency where lines cross.
- Anchor places carefully. Country-level flows need a point per country. We used centroids and placed Turkey's anchor in western Anatolia, which stands for the whole country, including Istanbul and the Antalya coast.
- Add a width legend with two or three round reference values.
The thematic map guide places flow maps among the other map types, and the heat map vs choropleth comparison covers what to use when your data is points or regions instead of pairs.
Building a flow map with MapLibre
Turn each row of the OD table into a GeoJSON LineString with the volume as a property. For curved lines, add a few intermediate points along an arc before you create the feature.
// One feature per origin-destination pair; coordinates are [lon, lat].
const flows = {
type: 'FeatureCollection',
features: [
{ type: 'Feature', properties: { pair: 'DE-ES', passengers: 29081966 },
geometry: { type: 'LineString', coordinates: [[10.4, 51.2], [4.5, 48.6], [-3.6, 40.3]] } },
// ...one feature per pair, sorted from largest to smallest
],
};
map.on('load', () => {
map.addSource('flows', { type: 'geojson', data: flows });
map.addLayer({
id: 'flow-lines',
type: 'line',
source: 'flows',
layout: {
'line-cap': 'round',
// Higher sort keys draw on top: negate the volume so thin lines end up above thick ones.
'line-sort-key': ['-', ['get', 'passengers']],
},
paint: {
// Width proportional to the volume: 29 million passengers draws an 11 px line.
'line-width': ['interpolate', ['linear'], ['get', 'passengers'], 0, 0.8, 29081966, 11],
'line-color': '#0958a8',
'line-opacity': 0.55,
},
});
});
For a network flow map, the geometry comes from a route instead of an arc: request the route for each pair from a directions API and attach the volume to the returned line.
Method. Passengers: Eurostat avia_paocc, annual 2024, "passengers carried" (counted once per flight leg), all schedule types, downloaded on 29 September 2026. Each pair is reported by both countries; we used the mean of the two reports, which differ by less than 3 percent for most of the 20 largest pairs and by up to 20.3 percent for Switzerland and Spain. The United Kingdom has no 2024 data in this dataset, so its flows, including the large ones with Spain, are missing. Driving times: MapAtlas Directions API, car profile, city centre to city centre, without traffic, on 29 September 2026. The script is scripts/seo/blog-keyword-research/flow-map.mjs and the output is docs/blog-keyword-research/flow-map-2026-09-29.json.
Where MapAtlas fits
A flow map needs coordinates for its places and, for network flows, a route for each pair. The Geocoding API turns place names in an OD table into coordinates, the Matrix API returns travel times and distances between many origins and destinations in one request, and the travel time map shows how far you get from one origin in a given time.
Preguntas frecuentes
What is a flow map?
A flow map is a thematic map that shows movement between places with lines whose width is proportional to how much moves along them: people, goods, money, vehicles or messages. Each line joins an origin and a destination. Flow maps are used for migration, commuting, trade, freight and air traffic, and they are built from an origin-destination table: one row per pair of places, with a volume.
What are the types of flow maps?
The common types are origin-destination maps, which join pairs of places with straight or curved lines, either radiating from one origin or linking many places as a network; distributive flow maps, which bundle lines from one origin into branching bands, like Minard's maps; network flow maps, which draw volumes along real roads, rails or rivers; and continuous flow maps, which show wind or ocean currents as streamlines.
What is an origin-destination (OD) matrix?
An origin-destination matrix is a table with one row per origin and one column per destination, where each cell holds the volume moving from that origin to that destination, such as passengers, trips or tonnes. It is the data behind a flow map. A travel time or distance matrix has the same shape, but its cells hold the time or distance between the two places instead of a volume.
How do you make a flow map?
Start from an origin-destination table, give every place a coordinate, and draw one line per pair with a width proportional to the volume. Keep only the largest flows so the map stays readable, curve the lines so opposite directions and overlapping routes stay apart, draw the thickest lines first, and add a legend with two or three reference widths. On a web map, a GeoJSON LineString source and a MapLibre line layer with a data-driven line-width do the job.

