Skip to content

A Flask web app for contact tracing using geolocation data, email-based OTP authentication, and interactive map visualization to identify potentially infected individuals based on proximity.

License

Notifications You must be signed in to change notification settings

HrishikeshSuchindra/Contact-Tracing-with-sample-data-points

Repository files navigation

📍 Contact Tracing Web App

A Flask-powered contact tracing system that uses geolocation data to identify potentially infected individuals based on proximity to a known infected path. Features OTP-based sign-in via email and visualizes contact zones using an interactive map.


🚀 Features

  • 📧 Email OTP Authentication: Sends a 6-digit OTP to the user's email for secure login.
  • 🧭 Contact Tracing Algorithm: Uses proximity search (BallTree from scikit-learn) to identify possible infections.
  • 🗺️ Interactive Map: Generates a dynamic map with infected zones and user location using Folium.
  • 📄 CSV Export: Outputs detailed contact tracing data as a downloadable CSV file.
  • 📊 HTML Table View: Display the result data table inside the browser.
  • 💻 Flask Web Interface: Simple and responsive web interface for user interaction.

🛠️ Tech Stack

  • Python 3.x
  • Flask
  • Flask-Mail
  • Pandas
  • NumPy
  • Scikit-learn
  • Folium (for map generation)
  • HTML, CSS (Jinja2 templates)

📂 Project Structure

📁 your-project/ │ ├── app.py # Main Flask application ├── templates/ │ ├── index.html # Home page with OTP flash message │ ├── results.html # Results display with map │ └── csvcontents.html # Rendered CSV contents ├── map_visualization.html # Generated interactive map ├── contact_tracing_results.csv # Output data of contact tracing ├── requirements.txt # Python dependencies └── README.md # Project overview

image

image

image

About

A Flask web app for contact tracing using geolocation data, email-based OTP authentication, and interactive map visualization to identify potentially infected individuals based on proximity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published