FlowsBook a callSign inCreate free accountSign up
Roads and traffic

Why a straight-line distance misleads, and when it is still good enough

Two places 2 km apart as the crow flies can be 9 km apart by road. When straight-line distance goes wrong, when it is fine, and how to measure by road.

Part of the guide Location intelligence automation

By the xMap team · · 5 min read

A straight-line distance measures the gap between two points on the map, but people and vans travel along roads, cross rivers on bridges, go around railways and follow one-way streets. That is why two places 2 km apart as the crow flies can be 6 or 9 km apart by road, and why a customer across a river may be further away in practice than one three times as far down a straight avenue. Use straight lines to rank and shortlist quickly; use road distance or travel time when the answer decides who serves whom, how long a delivery takes or how big a catchment really is.

This is for operations, logistics, sales and expansion teams who use distances every day: assigning jobs to the nearest depot, setting delivery zones, judging which rival is really closest, or planning visits. It covers why the two measures differ, when the gap is small enough to ignore, a made-up example, the mistakes, and how to measure on the roads in a flow.

Where the two measures part ways

The difference between straight-line and road distance is not a fixed percentage. It depends on the map between the two points:

  • Water. A river, a bay or a harbour with few bridges can triple a short hop. Cities built on water, such as Istanbul, Hong Kong or Stockholm, are full of these.
  • Railways and motorways. Both cut through neighbourhoods with crossings far apart. The house on the other side of the tracks may be a long way round.
  • One-way systems. In old city centres the trip out and the trip back can differ.
  • Hills and dead ends. Suburbs with cul-de-sacs, and hilly cities with winding roads, stretch every journey.
  • The mode. A footbridge serves walkers and cyclists but not cars; a motorway serves cars but not bikes.

Time adds another layer. Ten kilometres on a ring road and ten kilometres through a centre at 18:00 are not the same journey, and traffic moves differently at each hour.

When a straight line is good enough

  • Ranking a long list quickly, before you look at the top few in detail.
  • Dense, regular street grids with no river or railway between the points.
  • Very short distances on foot, where the street pattern adds little.
  • Comparing many places with the same method, where the error is similar for all of them.

It stops being good enough when the answer is a promise to a customer, a boundary between two teams, or a decision to open or close a site.

What xMap measures in a straight line, and what on the roads

Be clear which distance each block gives you:

BlockWhat its distance means
Nearby placesdistance_m from your point to each place found, in a straight line
Find nearestThe nearest of your own points to each place, in a straight line
Travel areaThe area reachable within a travel time or a road distance, by car, bike or on foot, following the roads
Route plannerEach leg's distance and time on the roads, for usual traffic
Traffic FlowNo distance: the live speed, free-flow speed and jam factor on the roads around each place

From each block's own page.

Travel area reaches up to 15 minutes or 10 km by road for now. When the routing service cannot answer, it falls back to a circle at a typical speed, and both the step and every email say it is an estimate. Travel times are for usual traffic, not the traffic at the moment of the run; Traffic Flow is the block that measures the moment.

A worked example (made up)

Say a home appliance repair firm in Cape Town assigns each call to the nearest of its three vans' bases. A customer is 3.1 km in a straight line from base A and 4.4 km from base B. Assigned by straight line, base A gets the job. On the roads, base A sits across a motorway with one interchange nearby, so its van drives 8.7 km; base B's van drives 5.2 km along one road. All figures are made up.

Over a month of such calls, the straight-line rule sends vans on the longest of two routes often enough that the firm switches. It keeps the straight-line shortlist of the two nearest bases, then lets the Route planner compare the real legs for those two only. The rule stays fast, and the answer becomes right.

Mistakes that come from straight lines

  • Drawing a catchment as a circle near water. Half the circle may be sea or the other bank of a river with no bridge.
  • Promising a delivery time from a radius. Customers measure in minutes, on the roads.
  • Assuming the nearest rival is the strongest. The rival two streets away across a railway can be harder to reach than one a kilometre down the same road.
  • Using usual-traffic times for rush hour. Check the live speeds with Traffic Flow at the hours that matter.
  • Mixing methods. Comparing one site's road distance with another's straight line flatters the second.

Measuring on the roads with an AI employee

A flow that sizes each store's real reach and what is inside it:

  1. Schedule: once a month.
  2. My data: your stores or depots.
  3. Travel area: 10 minutes by car around each one.
  4. Nearby places: your rivals, searched inside those areas.
  5. Traffic Flow on your own sites, run at the rush hour you care about, for the live speeds on the roads next to each.
  6. Email with Show on a map.

What lands in the inbox is a map of each store's real 10-minute reach with the rivals inside it, and a line per store with the road speed and jam factor around it at that hour. Any area marked as an estimate is said so in the email, so nobody mistakes a circle for a drive time.

Questions

How much longer is a road distance than a straight line?

It depends on the map. On a regular grid the difference is small; across a river, a railway or a motorway it can be several times longer. Measure it rather than applying a fixed factor.

Does Nearby places give road distances?

No. Its distance to each place is a straight line. Use Travel area to search within a real drive or walk, or Route planner for leg distances on the roads.

Are travel times live?

Travel area and Route planner use usual traffic. Traffic Flow measures the live speed and jam factor at the moment the flow runs, but it does not count cars.

What is the longest travel area I can draw?

Up to 15 minutes or 10 km by road for now, on foot, by bike or by car.

Templates that do this

Read next

More on roads and traffic · Every article · Templates

Put it to work

An AI employee in xMap Flows does this on live data, on its own timetable. Start from a template or describe it in plain words.