This is a website that can get your location (Only for Taipei City) and predict the number of remaining parking spaces in the nearby parking lot in the next 30 minutes, and calculates the best route to each parking lot using the Google API, reducing the time for waiting for parking spaces.
- python>=3
- Apache
- Two Server (For deploy the website and the prediction model)
- Tensorflow<2
- keras 2.3.1
- Change the sys.path in website/app.wsgi to your own Apache website path
- Change line 37 in webiste/server.py to your prediction model server address and port
- Launch the website by Apache
- Change line 86 in parking_map/map.py to the same port as the website/server.py
- Launch the prediction model
python ./parking_map/map.py
- Now you can open the website for checking the nearby parking spaces
- Unzip model_training/data/parking_data_all_V3.csv.zip and model_training/data/Google_api_V1.csv.zip
unzip ./model_training/data/parking_data_all_V3.csv.zip
unzip ./model_training/data/Google_api_V1.csv.zip
- Run model_training/model/preprocessing.py for preprocessing csv data to pickle
python ./model_training/model/preprocessing.py
- Train LSTM model
python ./model_training/model/LSTM.py
- Move the new LSTM model to prediction model folder
mv ./model_training/model/lstm_model.h5 ./parking_map/lstm_model.h5