NinaWie / dav_hut_finder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpenverein hut finder

Filter huts in the alps by

  • distance from starting location
  • Public transport accessibility
  • Available places at a specific date

Installation:

Download repo and install all dependencies into a conda environment with the following:

git clone https://github.com/NinaWie/dav_hut_finder 
cd dav_hut_finder 
conda create -n dav_env
conda activate dav_env
cd backend
pip install -e .

or simply build with Docker

docker build -t dav_hut_finder .

Development

Docker

docker build -t dav_hut_finder .
docker compose up

Open your browser at http://localhost:8989/

The compose file mounts the correct files so hot reloading works without re-building.

Flask demo

Simple flask demo already works, to test it, run

cd backend
python app.py

Open the index.html (folder frontend) in a browser and test by inputting latitude and longitude and pressing the button.

Next steps

  • Find out how to efficiently download PT stations -> see notebook
  • Compute distance of huts from closest PT station -> best with spatial join in geopandas. The huts are already available in geojson format in our database which can be loaded via gpd.read_file(file_path, driver="GeoJSON").
  • Set up basic web app with map

About

License:MIT License


Languages

Language:Jupyter Notebook 54.7%Language:Python 35.5%Language:HTML 5.2%Language:CSS 2.2%Language:JavaScript 1.9%Language:Dockerfile 0.5%