Service for pedestrian route planning that takes into account shadow and natural sunlight
See demo for Barcelona
- Install
python3
andpip
- Run
pip install -r requirements.txt
inconverter
folder - Download pre-exported map containing your region (e.g. from here)
- Download osmconvert and osmfilter
- Crop the region:
$ osmconvert compressed-map.osm.pbf -b=<area> --complete-ways --complete-
multipolygons -o=map-full.osm.
- Remove redundant objects from map:
$ osmfilter map-full.osm --keep 'highway= building= natural=
barrier=' --drop-relations -o=map.osm
- Put
map.osm
inconverter
directory - Run
python3 converter.py
in that directory (will take 2-3 hours to complete for Barcelona) - Move
converter/output.csv
tosunny-way-api/data/edges.csv
- Install
docker
- Run
sudo docker run -p 8080:8080 -v $(pwd)/data:/opt/data rofleksey/sunny-way-api:latest
insunny-way-api
directory - Visit
localhost:8080
in your browser
- Install
docker
- Run
sudo docker build -t <your_tag> --no-cache .
insunny-way-api
directory - Run
sudo docker run -p 8080:8080 -v $(pwd)/data:/opt/data <your_tag>
insunny-way-api
directory - Visit
localhost:8080
in your browser
- Install
Java 11 JDK
andNodeJS 14+
- Run
npm i --production
andnpm run build
inui
directory - Run
./gradlew run
insunny-way-api
folder (Wait forNetty started on port 8080
line to appear) - Visit
localhost:8080
in your browser