https://github.com/danvk/comparea
Compare geographic features
https://github.com/danvk/comparea
Last synced: 10 months ago
JSON representation
Compare geographic features
- Host: GitHub
- URL: https://github.com/danvk/comparea
- Owner: danvk
- Created: 2014-07-29T07:02:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T15:53:11.000Z (about 3 years ago)
- Last Synced: 2024-12-29T23:03:56.253Z (over 1 year ago)
- Language: Python
- Size: 23.4 MB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Comparea: Compare the Areas of any two things
Read more about Comparea on its [about page](https://comparea.org/about).
## Development
Quickstart:
python3 -m venv venv
source env/bin/activate
pip install -r requirements.txt
pnpm install
To iterate on the UI:
pnpm develop
open http://localhost:5000/
(You may need to [turn off Airplay Receiver][airplay] on macOS for this to work.)
To regenerate GeoJSON:
./data/generate_osm_geojson.py data/osm-filtered.txt > data/osm.json
./data/generate_geojson.py > comparea/static/data/comparea.geo.json
To regenerate metadata:
./data/fetch_metadata.py > data/metadata.json
./data/generate_geojson.py > comparea/static/data/comparea.geo.json
To test deployment locally:
pnpm build
heroku local web
To deploy:
git push heroku master
[airplay]: https://developer.apple.com/forums/thread/682332