A worked example, rendered from real sample data. Sign in to run the tool on your own input.
from=NYC
to=LA
transport=car
mpg=32
fuel_price=3.45═══ What this tool computed ═══
ℹ Great-circle (haversine) distance between two sets of coordinates. This page runs offline and makes no outbound network calls. — no mapping or routing service was queried.
ℹ A real road or rail route is always longer than the great circle. The route estimate below multiplies by a fixed factor that is stated in full.
═══ Points ═══
From: New York, US
40.71, -74.01 — from the built-in table
To: Los Angeles, US
34.05, -118.24 — from the built-in table
ℹ Table coordinates are the city or airport centre to two decimal places, so they are accurate to about 1 km.
═══ Straight-line distance ═══
Kilometres: 3935.2
Miles: 2445.2
Nautical miles: 2124.9
Initial bearing: 273.7° (W)
Midpoint: 39.5070, -97.1599
Angular separation: 35.39° of arc
═══ Route estimate by car ═══
Detour factor applied: x1.25 (stated assumption, not a measured route)
Estimated travel distance: 4919 km / 3057 mi
Assumed average speed: 90 km/h — motorway average including stops
Estimated time: 54h 39m
⚠ 54.7 hours of driving is more than one legal shift in most countries — plan an overnight stop.
═══ Fuel and cost ═══
Consumption you gave: 32 mpg
Fuel price you gave: 3.45 per gallon
Fuel needed: 95.5 gallons
Fuel cost: 329.53
═══ Get the real routed distance ═══
https://www.google.com/maps/dir/40.71,-74.01/34.05,-118.24
https://www.openstreetmap.org/directions?from=40.71%2C-74.01&to=34.05%2C-118.24
curl -s 'https://router.project-osrm.org/route/v1/driving/-74.01,40.71;-118.24,34.05?overview=false' | jq '.routes[0].distance, .routes[0].duration'
ℹ Those follow real r
…
Great-circle distance, bearing and midpoint between cities, airport codes or raw coordinates, plus a route and time estimate with stated assumptions. Part of the DevTools Surf developer suite. Browse more tools in the Travel collection.