Skip to content
S

SafeTrace

The world’s first safest-route engine

Created on 10th December 2025

•

S

SafeTrace

The world’s first safest-route engine

The problem SafeTrace solves

SafeTrace: What People Use It For and How It Makes Life Safer

SafeTrace flips navigation from fastest route to safest route, giving people the information they actually need:

  • Which streets are dangerous
  • Which areas are isolated
  • Where harassment or dog incidents occur
  • Where lighting is poor
  • How to get home safely even at night

Who Uses SafeTrace and Why

Women Walking Alone

  • Avoid harassment hotspots
  • Stay on busier, safer routes
  • Use one tap SOS with location

“SafeTrace found a route 3 minutes longer but 10 times safer.”


Night Shift Workers

  • Avoid dark or isolated stretches
  • See danger zones instantly
  • Make data backed decisions instead of guessing

Elderly Citizens

  • Avoid stray dog zones
  • Use SOS to reach family instantly
  • Family can check route safety

Students in New Cities or Campuses

  • Understand safe and unsafe streets quickly
  • Take safe late night routes between hostels and libraries
  • Report unsafe areas with a tap

Joggers and Early Morning Runners

  • Pick safe running loops
  • Share live location with one tap
  • Avoid unlit parks and paths

Companies With Night Staff

  • Recommend safe routes for employees
  • Reduce incidents and liability
  • Know where cab pickup is needed vs safe to walk

City Planners and Civic Bodies

  • Identify dark spots using crowdsourced lighting data
  • Measure safety improvements after interventions
  • Allocate streetlights and patrols using real evidence

How SafeTrace Makes Existing Tasks Easier

1. Safe Route Planning in Two Clicks

Before: Search blogs, ask friends, guess.
After: Enter start and end, and the safest path is highlighted.

2. Emergency SOS in One Tap

Before: Unlock phone, find contact, call, explain location.
After: Tap SOS, and a WhatsApp message with GPS is auto sent.

3. Community Safety Rating in One Tap

Before: Police forms, delays, no follow up.
After: A 1 to 5 star rating updates more than 100 road segments instantly.

4. Safety Awareness at a Glance

Before: Learn danger zones by experience which is risky.
After: Toggle heatmap for an instant understanding of the city.

5. Fast Incident Reporting

Before: No proof and no action.
After: Snap a photo, tag the issue, and the safety map updates. The information goes to municipal corporations and police officials so they can verify and act.


The Bigger Picture

SafeTrace is not just an app. It is the first safety intelligence layer on top of city maps.

  • For individuals: safer everyday movement
  • For communities: crowd powered safety awareness
  • For cities: data driven infrastructure decisions

Every rating protects someone else.
Every report makes the city safer.

SafeTrace transforms navigation with the world’s first “safest path” routing that helps people avoid danger zones, stay informed, and reach help instantly.

Challenges we ran into

1. Street Segmentation

  • OSM roads are not walkable units. They needed to be split at every intersection to produce meaningful safety segments. After intersection detection and graph construction, I generated 13,168 usable segments.
  • The main lesson was that useful data comes from the right level of granularity, not the raw map. The difference between a named road and a 50 meter segment inside that road is the difference between vague data and actionable insights.

2. Building the Rating Engine

  • No library existed for safety scoring, so I designed a four layer model: base rating, tag adjustments, persona adjustments, and time decay. I also added confidence scoring for low sample sizes.
  • The key insight was that scoring is about encoding human judgment into formulas.

3. Handling Noisy Crowdsourced Data

  • Crowdsourced ratings can be fake, stale, biased, or sparse. I used trust weights, exponential decay, confidence scores, bulk journey ratings, and neutral defaults to keep the system stable.
  • The takeaway was that raw crowdsourced input cannot be trusted without multiple safeguards.
  • Never allow raw crowdsourced input to directly influence routing. Every data point must be checked, weighted, and contextualized.

4. Rendering Maps Efficiently

  • Drawing more than 13 thousand segments required MapLibre GL, optimized GeoJSON, click buffers for mobile, tile fallbacks, and careful layer ordering.
  • The main learning was that every simple map interaction hides significant technical complexity.

5. Safety Weighted Routing

  • Shortest path algorithms only consider distance, so I transformed weights.
  • This makes unsafe segments feel longer without blocking them.
  • A small change in weights completely reshaped routing behavior.
  • Tiny mathematical adjustments can drastically change real world routes. A small penalty can redirect an entire journey.

6. Real Time Heatmap Updates

  • Regenerating a multi megabyte heatmap on every rating was slow. I switched to in memory incremental updates, single batch regeneration, and cache busting.
  • The lesson was that real time systems must rely on memory, not disk.

7. Bulk Rating at Scale

  • One walk can cross more than 100 segments. Instead of sending 100 API calls, I batched them into a single request and processed them together.
  • Batching turned a slow workflow into an instant one.

Discussion

Builders also viewed

See more projects on Devfolio