Skip to content
forked from adiXcodr/SafeMaps

A Web App made for safe navigation during a Pandemic

License

Notifications You must be signed in to change notification settings

mousoom/SafeMaps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAFE MAPS

A Web App made for safe navigation during a Pandemic

Technologies used

  • Python
  • networkx
  • flask
  • HTML, CSS

Demo

https://safemaps.herokuapp.com/

Project Structure

This project has three major parts :

  1. app.py - This contains Flask APIs that receives movie a review through GUI or API calls, computes the precited value based on our model and returns it.
  2. index.html - The HTML template to allow user to enter the movie review.

Steps to run the application

  1. Run app.py using the command below to start Flask API
python app.py
  1. Navigate to URL http://localhost:5000

  2. To close the server, press Ctrl+C


Terms

We will use some parameters as follows:

  1. Density of people affected (DPA) on each edge between two nodes [people affected/length of path]
  2. Traffic Intensity Level (TIL)
  3. Crime Rate Level (CRL)
  4. Distance between two nodes (DIS)

Plan

  1. Create a network of places in a city and make a connected graph of say ‘n’ predefined places.
  2. Assign the number of people and number of people infected to each edge.
  3. Assign TIL, CRL and DIS to each edge randomly.
  4. Assign the Distance to each edge randomly.
  5. We make an interface between the user and the computer using a suitable UI platform. The user will select the source and destination from the given places.
  6. Find all possible paths between the two nodes and find the paths for which the sum of DPA is less.
  7. If there are multiple paths for which the difference in DPA is negligible (<=5), then look for the time in system clock.
  8. If it’s Night time, then look for the paths in which crime less and if it’s daytime then look for the paths in which TIL is less.
  9. Till now we might have achieved a single path or few paths in which the difference between DPA and the difference between TIL (<=2) or the difference between CRL (<=1) is negligible.
  10. Among the paths obtained, find the path with minimum distance (DIS)
  11. The path obtained will be our output.

Author

About

A Web App made for safe navigation during a Pandemic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.4%
  • CSS 23.4%
  • HTML 20.2%