How manikantatangi/women-safety-quantum-gdg works
This is a web-based emergency-response routing MVP: a user sends an SOS with live coordinates, the backend obtains alternative driving routes from OSRM, normalizes their ETAs, and asks a Cirq-based optimizer to select a route. The response includes police and victim locations plus route geometries; the frontend displays the chosen route and alternatives on a map. The README also describes safety information and emergency numbers in the interface. Those interface details are represented from the documented structure, while the sampled source does not show their implementation or any real police dispatch integration.
Main entry points: main.py SOS handler · app.js Location capture · quantum.py Quantum optimizer · index.html SOS interface
Components 17
Web interface
- SOS interface
frontend/index.html - Safety information
frontend/index.html - Emergency numbers
frontend/index.html - Location capture
frontend/app.js - Route map
frontend/app.js
SOS backend
- SOS handler
backend/main.py - Police location estimate
backend/main.py - Route fetching
backend/main.py - ETA cost normalization
backend/main.py - Response assembly
backend/main.py
Route optimization
- Quantum optimizer
backend/quantum.py
External services
- Browser geolocation
- OSRM routing
- Cirq simulator
- Leaflet mapping
- OpenStreetMap tiles
Other components
- User
Connections 20
- User → SOS interface: presses SOS
- User → Safety information: views
- User → Emergency numbers: views
- SOS interface → Location capture: starts capture
- Location capture → Browser geolocation: requests coordinates
- Browser geolocation → Location capture: returns coordinates
- Location capture → SOS handler: posts coordinates
- SOS handler → Police location estimate: derives location
- SOS handler → Route fetching: requests routes
- Route fetching → OSRM routing: requests alternatives
- OSRM routing → Route fetching: returns routes
- SOS handler → ETA cost normalization: normalizes ETAs
- ETA cost normalization → Quantum optimizer: provides costs
- Quantum optimizer → Cirq simulator: runs circuit
- Quantum optimizer → SOS handler: returns selection
- SOS handler → Response assembly: assembles result
- Response assembly → Location capture: returns response
- Location capture → Route map: renders result
- Route map → Leaflet mapping: draws map
- Leaflet mapping → OpenStreetMap tiles: loads tiles