Plotlay Open the app →

Showcase · Routes by road · OpenStreetMap on the Dusk map

How far is it round Los Angeles, San Francisco and Las Vegas by road?

1,960 km, city hall to city hall: Los Angeles to San Francisco, on to Las Vegas and back to Los Angeles, by the quickest roads on OpenStreetMap’s freeways and main roads. In straight lines the same loop is 1,598 km.

Most of the difference is one leg. San Francisco to Las Vegas is 913 km by road, 36% longer than the straight line, because no freeway crosses the Sierra Nevada on the way: the route runs down the Central Valley to Bakersfield and turns east over the Tehachapi Pass.

The three routes drawn out in the app, on Plotlay’s Dusk map.
1,960 kmby road round the three cities
1,598 kmin straight lines
36%longer by road, San Francisco to Las Vegas
18 hoursat the wheel on empty roads (a model)

The loop

Each leg is the quickest route between two city halls on the roads OpenStreetMap tags as motorway, trunk or primary in California and Nevada: 233,928 ways, 61,330 km of road. Kilometres are measured along the roads; the straight line is the shortest distance over the Earth’s surface.

Map of California and Nevada on a warm evening base map with three coloured routes: Los Angeles to San Francisco up I-5 in blue, San Francisco to Las Vegas down the Central Valley and east through Bakersfield and Barstow in green, Las Vegas to Los Angeles on I-15 in orange.
A map picture from Plotlay’s Analysis page, with its key, scale and credits, on the Dusk map.
RouteBy road (km)Straight (km)LongerEmpty roads (model)
Los Angeles to San Francisco614.3559.310%5 h 44 min
San Francisco to Las Vegas912.7671.436%8 h 34 min
Las Vegas to Los Angeles432.5366.818%4 h 01 min

Round the Sierra Nevada

Los Angeles to San Francisco is 10% longer than the straight line, nearly all of it on I-5 up the Central Valley. Las Vegas to Los Angeles is 18% longer, on I-15 through the Cajon Pass. San Francisco to Las Vegas is 241 km longer than the straight line: the mountains between them have no freeway, so the route goes south to Bakersfield and over the Tehachapi Pass on CA 58 to Barstow before it turns north-east on I-15.

The app zoomed on the southern Central Valley: the green San Francisco to Las Vegas route turns east at Bakersfield and climbs through Tehachapi and Mojave, while the blue Los Angeles route continues south on I-5.
Over the Tehachapi Pass: where the San Francisco to Las Vegas route leaves I-5.
Bar chart of the three routes, by road and in a straight line: Los Angeles to San Francisco 614 and 559 km, San Francisco to Las Vegas 913 and 671 km, Las Vegas to Los Angeles 432 and 367 km.
Made in Plotlay’s chart engine from the routes layer.

How it was made in Plotlay

  1. Roads: OpenStreetMap’s motorway, trunk and primary roads and their links from the Geofabrik California and Nevada extracts, read with their speed limits where mapped.
  2. Places: a data layer of the three city halls, keyed LA, SF and LV.
  3. Routes between these, on the layer’s Analyse tab: one after another and back. Plotlay finds the quickest way by road between each pair and draws it as a new layer of lines with kilometres along the roads, minutes on empty roads, the straight line, the share on freeways and the main roads used.
  4. Dusk base map, and badges, Plotlay’s bold lettered marker, on the city halls. Map pictures and the chart on the Analysis page.
Plotlay on the Dusk map with the three routes and lettered badges, and the Data layers panel open at Routes between these: one after another, and back.
Routes between these, in the Data layers panel.

An AI agent can do the same through Plotlay’s connector with create_data_layer, add_data_shapes, drive_routes, set_basemap (Dusk) and add_shape (a badge marker). More about Data maps

Python and Power BI

The routes, the roads each one uses, the city halls and a narrated Jupyter notebook that checks the kilometres against the lines and works out the straight lines afresh, in the plotlay-three-cities-by-road repository on GitHub. Download the notebook and the data.

For Power BI, the repository has a Power BI Project (.pbip): the loop’s cards, the routes by road and in a straight line, the roads used and a map of the city halls. It reads the data from GitHub, so it refreshes with no gateway.

Read it carefully

Sources and licences

Roads and city hall positions: © OpenStreetMap contributors, Open Database License, California and Nevada extracts of 25 November 2026 from Geofabrik. Routes by Plotlay; the routes and tables are under the ODbL.

Map pictures, the chart and the video in Plotlay on its Dusk map, tiles Protomaps; place names in Archivo Black (SIL Open Font License).