Customised and interactive map with Python’s Folium library and Pandas.
Folium is a python library allowing to call the Leaflet.js Javascript library. It allows you to manipulate your data with python and map them using the power of leaflet! It is really easy to call a map using this library. This app shows the map of Bogota, and includes important data of the city such as the delimitation of its localities, the immediate attention center of the Police, Fire stations and bike paths where bicycles can ride. The data is obtained from the page "Datos Abiertos Bogotá". See here
For the web version, the Flask framework is used.
You must have Python installed in your local machine. All the dependencies and required libraries are included in the file requirements.txt
See here
To check the Python version in your machine, just open a terminal, and try this command:
python --version
- Clone the repository to your local machine. To do this, run this command inside your terminal:
$ git clone https://github.com/<your-github-username>/Interactive_Map.git
- Change your directory to the cloned repo:
$ cd Interactive_Map
- Create a Python virtual environment named 'venv' and activate it:
Windows User
$ python -m venv venv
$ venv\Scripts\activate.bat
Linux or macOs User
$ python3.9 -m venv env
$ source env/bin/activate
- Install all the dependencies and required libraries:
$ pip install -r requirements.txt
Open terminal. Go into the cloned project directory, activate the Python virtual environment and type the following command:
python main.py
and then you must open the file Map1.html and you will be able to see the map:
At the top right you can select what you want to see on the map:
To view the web version, which uses Flask, you must view the fileflask_app.py
- Andrés Felipe Barrero Arce - Barrero0717