Giter VIP home page Giter VIP logo

interactive_map's Introduction

Interactive Map

Customised and interactive map with Python’s Folium library and Pandas.

🚀 Getting Started

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.

📋 Pre-requisites

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

🔧 Installation

  1. 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 
  1. Change your directory to the cloned repo:
$ cd Interactive_Map
  1. 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
  1. Install all the dependencies and required libraries:
$ pip install -r requirements.txt

⚙️ Running the app

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: image

At the top right you can select what you want to see on the map: image

To view the web version, which uses Flask, you must view the fileflask_app.py

✒️ Authors

interactive_map's People

Contributors

barrero0717 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.