- Python
- networkx
- flask
- HTML, CSS
https://safemaps.herokuapp.com/
This project has three major parts :
- 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.
- index.html - The HTML template to allow user to enter the movie review.
- Run app.py using the command below to start Flask API
python app.py
-
Navigate to URL http://localhost:5000
-
To close the server, press Ctrl+C
We will use some parameters as follows:
- Density of people affected (DPA) on each edge between two nodes [people affected/length of path]
- Traffic Intensity Level (TIL)
- Crime Rate Level (CRL)
- Distance between two nodes (DIS)
- Create a network of places in a city and make a connected graph of say ‘n’ predefined places.
- Assign the number of people and number of people infected to each edge.
- Assign TIL, CRL and DIS to each edge randomly.
- Assign the Distance to each edge randomly.
- 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.
- Find all possible paths between the two nodes and find the paths for which the sum of DPA is less.
- If there are multiple paths for which the difference in DPA is negligible (<=5), then look for the time in system clock.
- 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.
- 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.
- Among the paths obtained, find the path with minimum distance (DIS)
- The path obtained will be our output.