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 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.

| Route | By road (km) | Straight (km) | Longer | Empty roads (model) |
|---|---|---|---|---|
| Los Angeles to San Francisco | 614.3 | 559.3 | 10% | 5 h 44 min |
| San Francisco to Las Vegas | 912.7 | 671.4 | 36% | 8 h 34 min |
| Las Vegas to Los Angeles | 432.5 | 366.8 | 18% | 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.


How it was made in Plotlay
- 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.
- Places: a data layer of the three city halls, keyed LA, SF and LV.
- 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.
- Dusk base map, and badges, Plotlay’s bold lettered marker, on the city halls. Map pictures and the chart on the Analysis page.

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
- The minutes are a model, not a traffic forecast. Each kind of road at its typical speed, or its mapped speed limit, on empty roads with no stops. Real trips on I-5 and I-15 take longer, often much longer on a Friday.
- Main roads only. Motorway, trunk and primary roads; the city halls join the nearest of them. Smaller roads could shorten a route by a little at each end.
- OpenStreetMap is as mapped on 25 November 2026: a missing link would send a route the long way.
- City hall to city hall. Another start or finish in the same city changes the kilometres by tens of kilometres.
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).
Route your own places
Plotlay is free to start: every tool, three cloud projects.
Create free accountThen add your places to a data layer and draw routes between them