This is program which generates a map of the existing GeoforAll members.
- Python 3 https://www.python.org/downloads/
- virtualenv https://pypi.org/project/virtualenv/
pip3 install virtualenv
- Install above programs and navigate to app/
- Execute
source bin/activate
in shell to activate. - (Optional) Run
python3 generate.py
and follow instructions to generate a new dataset from the website. - Execute
python3 -m http.server 8000
. - Open a web browser and goto http://localhost:8000
- Execute
deactivate
in shell to exit the virtualenv.
First, I looked up about Leaflet since that was my choice for creating the map. After I found that geojson was used for it I looked up how to create geojson from python. That's where I found the geojson
library for Python. Then I used urllib3
and beautifulsoup4
to scrape the data from the web page (Some coordinates are faulty I think). Then that dataset was used to generate the map.