Product · 6 min read

Mapping the lit streets: how we built night routes

Riders told us the fastest route home is not always the one they want at 1am. So we counted streetlights.

Last spring we asked night riders in Glasgow one question: what would make you ride home after dark? The answer was not faster bikes or cheaper passes. It was light.

Most routing engines weigh distance, hills and traffic. None of them know whether a street is lit, busy or empty at 1am. So we went and found out.

Counting six cities of lamps

Every city publishes some streetlight data, in some format. We pulled six open datasets, matched each lamp to the nearest street segment and gave every segment a lit_score from 0 to 1.

  • Segments with a lamp every 30 metres or less score close to 1
  • Parks and towpaths after closing time score 0, whatever the lamps say
  • Riders can flag a dark stretch, and three flags send it for review
"I used to take a taxi after late shifts. Now I pick the purple route and ride."

Only a little slower

Night routes add 90 seconds to the average trip. In return, 94% of the route runs on streets with a lit score above 0.8. Riders can switch back to the fastest route with one tap, and a third of them never do.

Night routes switch on at sunset in every Loopline city today. Read more about it in the app, or tell us about a dark street we missed.