- Python 3.7 or greater installed
- Install pip(package installer for python)
- Install
virtualenv:
$ pip install virtualenv
- Open a terminal in the project root directory and run:
$ virtualenv env
- Run the command:
$ .\env\Scripts\activate (Powershell)
or
$ source env/Scripts/activate (for GitBash)
- Install the dependencies:
$ (env) pip install -r requirements.txt
- Finally start the server:
$ (env) python app.py
TO BE UPDATE
{
"geofence": [
{
"coordinates": [
{
"lat": 0.0,
"lng": 0.0
},
{
"lat": 0.0,
"lng": 0.0
},
{
"lat": 0.0,
"lng": 0.0
},
],
"keep_in": true
},
{
"coordinates": [
{
"lat": 0.0,
"lng": 0.0
},
{
"lat": 0.0,
"lng": 0.0
},
{
"lat": 0.0,
"lng": 0.0
},
],
"keep_in": false
}
]
}
NOTE: Geofence is an array of objects. Each object represents a single polygon. A polygon is composed of the boolean 'Keep_in' and an array that can contain any number of coordinates. Also keeping track of circle inputs for repopulating GUI with previous inputs.
{
"search_area": [
{
"lng": 0.0,
"lat": 0.0
},
{
"lng": 0.0,
"lat": 0.0
},
{
"lng": 0.0,
"lat": 0.0
}
]
}
NOTE: Search Area is an array of objects that describe an area made up of longitudes and latitudes pairs
{
"home_coordinates": {
"1": {
"vehicle": "MAC",
"lat": 33.93368449228065,
"lng": -117.63028265435334
},
"2": {
"vehicle": "MEA",
"lat": 33.934454472545525,
"lng": -117.63246060807343
},
"3": {
"vehicle": "ERU",
"lat": 33.93368449228065,
"lng": -117.63077618081208
}
},
}
NOTE: Each vehicle has its own home coordinates
{
"drop_coordinates":
{
"lat": 33.93436545784193,
"lng": -117.6308888335907
}
}
Note: Drop coordinates are for MAC
{
"evacuation_coordinates":
{
"lat": 33.934071708659815,
"lng": -117.63107658822175
}
}
Note: Evacuation coordinates are for MEA and ERU