A web API to query for Canadian waypoints and create simple flight plans, written in Python (Flask)
Jump to documentation
Jump to installation
An extracurricular project to practice Python, SQL, client-side JavaScript, and Flask.
This project is being developed with Python 3.11. Project requirements are listed in requirements.txt
.
The in-browser map is created using Leaflet.js through a CDN. No installation of Leaflet is required.
- Ensure that PostgreSQL is installed an PostgreSQL server is running using the following PowerShell command:
Get-Process | Where-Object { $_.ProcessName -eq "postgres" }
Or Bash:
pgrep postgres || pgrep postmaster
- Clone this repository
- Create a virtual environment using
python -m venv venv
. This creates a venv folder that will contain the necessary libraries
python -m venv venv
- Activate the virtual environment with
venv\Scripts\activate
. The shell should now indicate you are in the virtual environment. - Install the requirements with
pip install -r requirements.txt
pip install -r requirements.txt
- Once you are finished with the application, you can deactivate the virtual environment using
deactivate
.
- Can query for individual waypoints via URL
- Can generate maps of waypoint(s)
- Finds optimal (shortest) path between multiple waypoints
- Generates flightplan based on origin, destination, and additional waypoints
- Generates headings and provides weather information in flight plan
- Includes all North American Waypoints
- Responsive Design (Unlikely as the utility is not designed for mobile devices, but tablets should work fine.)
The documentation for this app can be found at the /documentation route.