A Route Planner is an assistant for truck drivers. The Route Planner defines stopping points for the truck driver so that the driver can follow a healthy schedule of work and rest. Additionally, the Route Planner suggests cafes and hotels that are located near these points. The solution is described in detail in the presentation for hackathon.
The Route Planner was developed as part of the DAF Hackathon which took place on the 8th of June, 2024. The Route Planner is intended to be an extension for the existing DAF navigation system. Now it works as an independent web app, examples of which you can see below.
API_
- folder with code which extracts the data through apiapp
- file where we create the frameworkdata
- folder in which we store needed data from apis or external datasetspresentation
- folder that contains the presentation material for the route plannerconfig.py
- configuration filerequirements.txt
- file which stores all used libraries
- Python 3.10+: Ensure you have Python 3.10 or later installed.
- API Key: Obtain an API key for the Google Maps API and update the
config.py
file.
-
Clone the repository:
git clone https://github.com/alex8399/daf-hackathon.git cd daf_hackathon
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
- API Key: Ensure your
config.py
file contains your Google Maps API key:# config.py API_KEY = 'YOUR_GOOGLE_MAPS_API_KEY'
-
Run the Streamlit app:
streamlit run app/main.py
-
Access the app: Open your web browser and go to
http://localhost:8501
.
- Enter the Origin and Destination: Use the sidebar to input the origin and destination of your route.
- View the Route: The app will display the best route on a map.