Many women already plan the way home: the well-lit road, the street with shops still open, the stretch that isn't empty. SafeRoute does that planning with you. Ask for a route and you get two: the quick one, and one that favours working lights, nearby cameras, a police station within reach and people around. Both are drawn on the same map with the trade-off in minutes, so the decision stays yours.
Bengaluru only, for now. SafeRoute only works inside Bengaluru today. Routes outside the city will be refused.
The map data is OpenStreetMap: — km of walkable and drivable streets, cut into segments at every junction. Each segment gets a safety score between 0 and 100. A route's score is the length-weighted average of the segments it uses, so a long unlit stretch counts for more than a short one.
Mappls plans the quickest route. We take its exact path and look up every stretch of it in our own data, to score it.
We search our street graph with each segment's length inflated by how unsafe it is, so risky streets "cost" more than they measure.
If that path is more than 1.45× the length of the fastest one, we ease the safety weight back until it isn't. A route nobody would walk is no use.
Both go on the map with time, distance and score side by side. If nothing safer exists, we say so rather than inventing a difference.
Five ingredients, each turned into a number from 0 to 1, then blended. The blend changes after dark: lighting matters, and the other terms give up some weight to make room for it.
35%25%25%15%30%25%20%15%10%Road type. Main roads score high, back lanes low: primary 0.95, secondary 0.85, tertiary 0.70, residential 0.50, service roads and footpaths 0.25. Busy roads are overlooked less; quiet lanes more.
CCTV. Cameras within 40 m of the segment. One camera gives 0.5; two or more give the full 1.0. Indoor cameras (shops, lobbies) are ignored because they don't watch the street.
Foot traffic. Shops, cafés, pharmacies, banks, fuel stations, hospitals and cash machines within 50 m, standing in for "people are around". Eight or more gives the full 1.0.
Police. Straight-line distance to the nearest station, decaying smoothly: 0.37 at 500 m, 0.14 at a kilometre.
At w = 0 this is plain shortest-distance. A segment with safety 0.2 at w = 1.5 behaves as if it were 2.2× longer, so the search detours around it when a better street is within reach, and takes it when the alternative is far longer.
Everything above is a judgement about places, not a prediction about people. It knows nothing about crime reports, or about you.
There is no city-wide map of working streetlights. What exists is whatever OpenStreetMap volunteers have recorded. So every segment carries a label for how we know it is lit, and you can see those labels on the map: switch on 💡 Lighting in the app and zoom in.
| Evidence | Treated as | Share of road length |
|---|---|---|
Mapped as lit (lit=yes) | Lit | — |
| A mapped street lamp within 15 m | Lit | — |
| Major road with no tag (trunk, primary, secondary) | Assumed lit | — |
Mapped as unlit (lit=no) | Unlit | — |
| Nothing recorded | Unlit, for scoring | — |
A router that overstated its confidence would be worse than none. These are the things to keep in mind.
Found a wrong or missing camera or streetlight? Add it to OpenStreetMap (man_made=surveillance, highway=street_lamp, lit=yes); the next data refresh picks it up.