What Is a Distance Map Tool — and When Do You Need One?
A distance map tool answers the most fundamental spatial question: how far apart are these two places? That question is deceptively simple but practically essential — whether you are planning a delivery route, estimating commute times, assessing catchment areas, or pricing freight. The answer changes depending on what you mean by "distance."
This tool provides both answers simultaneously. The straight-line distance (also called the geodesic or "as the crow flies" distance) is the shortest possible path between two points on the Earth's surface, calculated using the Haversine formula. The road distance follows the actual driving route via the OpenStreetMap road network and is always longer. Both paths are drawn on the map — a dashed pink line for the straight-line, a solid blue line for the road route — so you can see the difference visually.
No account, no download, no subscription. Type two addresses and click Calculate.
Road Distance vs Straight-Line Distance — Why the Gap Matters
The difference between how far two places are and how far you must actually travel between them is one of the most underappreciated variables in planning. Straight-line (geodesic) distance assumes a perfectly direct path across the Earth's surface. Road distance is always longer — often significantly so — because roads must follow terrain, avoid obstacles, and conform to existing infrastructure.
The ratio of road distance to straight-line distance is called the circuity factor. In compact urban grids (Manhattan-style), it averages around 1.2–1.3. In suburban and rural areas it rises to 1.3–1.6. In mountainous regions with limited crossings — the Alps, Scottish Highlands, or parts of Norway — it can exceed 3×, meaning a 20 km straight-line journey requires a 60 km drive. Knowing which scenario you are in changes budgets, timetables, and feasibility assessments.
For freight, this gap is a direct cost. Road transport accounts for roughly 75% of total inland freight movement in Europe and the US. Fuel costs scale with road distance, not straight-line distance, so underestimating circuity leads to underpriced contracts and missed delivery windows. Conversely, using road distance where straight-line suffices (comparing inter-continental shipping distances, for instance) introduces unnecessary complexity.
This tool eliminates guesswork by computing both figures simultaneously and drawing both paths on the map. The visual gap between the dashed pink line (straight) and the solid blue line (road route) immediately communicates the circuity of a specific journey — no calculation required.
Who Uses a Distance Measurement Tool — and How
Freight Pricing and Route Auditing
Carriers and brokers use straight-line distance as a quick sanity check when quoting freight rates, then verify with road distance when pricing fuel surcharges and driver hours. A shipment quoted at "250 km" straight-line that routes at 380 km by road changes the economics significantly. Measuring both figures before accepting a load helps carriers avoid under-priced contracts.
Commuter and Relocation Decisions
Job-seekers and families relocating often filter housing by straight-line distance to a workplace or school — then discover the actual drive is much longer due to a river, motorway, or industrial zone between them. Checking both figures before shortlisting properties avoids that surprise. The tool handles this in seconds: type the home postcode and the office address, click Calculate, and see the real commute distance alongside the crow-flies figure.
Emergency Response Planning
Ambulance and fire response zones are defined by travel time, which depends on road distance — not straight-line distance. Planners verifying that a proposed station can reach all points in its coverage area within a target response window need the road distance and drive time this tool provides. A station that looks well-placed on a straight-line map may be isolated by geography when actual road routes are checked.
Endurance Sports and Route Verification
Cyclists, runners, and open-water swimmers plan routes using road or water distance. A 10 km open-water swim is a straight-line distance; a 100 km sportive is a road distance. Comparing both for a planned route tells an athlete how much extra distance road detours add versus a theoretical direct line. The GeoJSON export lets course designers import the route into mapping software used for race programs and GPS watch profiles.
Spatial Research and Data Pipelines
Accessibility researchers and urban economists use straight-line Haversine distance as a standard instrument variable — a proxy that correlates with road distance but is uncorrelated with local infrastructure quality, making it useful in econometric models. The GeoJSON output integrates directly into QGIS, Python (geopandas), and R (sf) pipelines where individual pair measurements feed into larger distance matrices or gravity models.
Key Features of the Distance Map Tool
Unlike standard navigation apps that only show road directions, this tool is built for measurement and analysis. It shows both distance types simultaneously with no extra clicks. If you also need to draw a radius circle around a point or calculate the area of a polygon, see the Land Area Calculator.
- →Straight-line Distance — Haversine geodesic formula — accurate to ±0.05% at any scale
- →Road Driving Distance — OSRM routing engine using live OpenStreetMap road data
- →Estimated Drive Time — OSRM provides duration alongside distance
- →Address Geocoding — Any address, city, postcode, or ZIP code worldwide
- →GPS From Location — One tap to set your current position as the From point
- →A/B Markers — Blue A for From, red B for To — click for location name
- →Visual Path Comparison — Dashed pink = straight-line; solid blue = road route
- →Basemap Switcher — Street (CARTO), Satellite (Esri), Terrain (Esri)
- →GeoJSON Export — Both paths as LineString features with distance properties
- →Fullscreen Mode — Expand the map for a larger working view
- →Mobile Responsive — Compact toolbar rows, scrollable stats bar, touch gestures
- →No Registration — Works entirely in your browser — no data stored server-side
How to Use — Step by Step









Distance Unit Reference
| Unit | Metres | Kilometres |
|---|---|---|
| 1 Mile | 1,609.344 m | 1.609 km |
| 1 Kilometre | 1,000 m | 1 km |
| 1 Nautical Mile | 1,852 m | 1.852 km |
| 1 Foot | 0.3048 m | 0.0003048 km |
| 1 Yard | 0.9144 m | 0.0009144 km |
Frequently Asked Questions
- Do I need to pay to measure distances, and where does the driving route come from?
- It's free with no usage cap for normal use. Straight-line distance is calculated locally in your browser with the Haversine formula, while the driving route comes from the public OSRM routing engine — a free, open-source service that needs no API key.
- What is the difference between straight-line and road distance?
- Straight-line distance (also called "as the crow flies") is the shortest possible path between two points on the Earth's surface, calculated using the Haversine geodesic formula. It ignores roads, terrain, and obstacles. Road distance follows the actual driving route via the road network and is always longer than straight-line distance. The tool shows both simultaneously so you can compare them.
- How accurate is the straight-line distance?
- The straight-line distance is calculated using the Haversine formula, which accounts for the Earth's spherical shape. For distances under 500 km accuracy is within ±0.05%. For very long distances (thousands of kilometres), the Vincenty formula would be marginally more accurate, but the difference is under 0.05% in most cases — well within practical requirements.
- How is the road driving distance calculated?
- Road distance is calculated using the OSRM (Open Source Routing Machine) routing engine, which uses OpenStreetMap road data. OSRM finds the fastest driving route between the two points and returns the total distance and estimated driving duration. The road route is drawn as a solid blue line on the map.
- Can I measure the distance from my current location?
- Yes. Click the GPS icon next to the From field to set your current location as the starting point. The map zooms to your position and sets the From field to "My Location". Then enter any destination in the To field and click Calculate.
- Can I measure the distance between postcodes or ZIP codes?
- Yes. Type any postcode or ZIP code in the From or To field. The tool geocodes it using OpenStreetMap Nominatim and places a marker at the centroid of that postcode area. This is useful for logistics planning, real estate analysis, and delivery zone estimation.
- What happens if a road route is not available?
- If the two points are not connected by a road network — for example, if one point is on an island or the route would require a ferry — the tool will display the straight-line distance only and show a note explaining that the road route is unavailable. The straight-line distance remains valid in all cases.
- What does the GeoJSON export contain?
- The downloaded GeoJSON file contains a FeatureCollection with two LineString features: one for the straight-line path and one for the road route (if available). Each feature includes properties for distance in km and miles, origin and destination names, and (for the road route) estimated duration in seconds. The file is compatible with QGIS, ArcGIS, Mapbox, Leaflet, and geojson.io.
- Can I use this instead of Google Maps to measure distance?
- Yes. Google Maps does show driving directions with distance, but it does not display the straight-line distance or allow you to export the route as GeoJSON. This tool shows both distances simultaneously, draws both paths on the map for visual comparison, and lets you download the route data for use in GIS software — features Google Maps does not offer.
- Does the tool work on mobile phones and tablets?
- Yes. The toolbar is arranged in compact rows, the map resizes to fit the screen, and the stats bar scrolls horizontally to show all values. Touch gestures work for panning and zooming the map. The GPS button lets mobile users set their current location with a single tap.
- What basemaps are available?
- Three basemaps are available: Street (CARTO street map — default), Satellite (Esri World Imagery aerial photography), and Terrain (Esri World Topo Map with elevation context). Satellite view is useful for visualising a route over real terrain; Terrain is helpful for hiking, cycling, or cross-country planning.
- What coordinate system does the tool use?
- The map displays in Web Mercator (EPSG:3857). Geocoded coordinates and GeoJSON output use WGS 84 (EPSG:4326) decimal degrees — the same system used by GPS devices, Google Maps, and the GeoJSON specification (RFC 7946).
Open Source & Credits
- Map library: Leaflet — open-source interactive maps
- Geocoding: Nominatim / OpenStreetMap — address search
- Road routing: OSRM — open-source road routing engine
- Map tiles: CARTO — street basemap
- Satellite: Esri ArcGIS Online — satellite and terrain basemaps