Skip to content
/ SafePath Public

SafePath - AI-powered crime-aware navigation system for Chicago. Integrates real-time crime data from Chicago Open Data Portal with intelligent routing algorithms to provide safety-optimized routes that avoid high-risk areas. Features interactive crime visualization, dual routing options, risk level analysis, and incident reporting.

Notifications You must be signed in to change notification settings

J-e-i/SafePath

Repository files navigation

SafePath

SafePath is a crime-aware routing app for Chicago. It fetches recent crime data, builds risk buffers, and offers direct vs safety‑optimized routes.

Features

  • Real-time crime data (Chicago Open Data)
  • Direct vs optimized (avoid risk polygons) routing
  • Leaflet interactive map
  • Turf.js geospatial buffers & unions
  • Address geocoding (Nominatim)
  • OpenRouteService directions

Tech Stack

Next.js (App Router) • React • TypeScript • Leaflet / react-leaflet • Turf.js • Tailwind CSS • Axios

APIs

Env Setup

Create .env.local (not committed) using .env.example.

Scripts

npm run dev - start dev npm run build - production build npm start - run production

Security

Do not expose API keys in client code—proxy via Next.js route handlers.

Roadmap

  • Caching & rate limit handling
  • User auth + saved safe routes
  • Heatmap & severity weighting

About

SafePath - AI-powered crime-aware navigation system for Chicago. Integrates real-time crime data from Chicago Open Data Portal with intelligent routing algorithms to provide safety-optimized routes that avoid high-risk areas. Features interactive crime visualization, dual routing options, risk level analysis, and incident reporting.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages