ipsolar / flask_mapbox

Visualize route on map using Flask and Mapbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask_mapbox

Visualize route on map using Flask and Mapbox

Requirements

The python dependencies are managed using pip and listed in requirements.txt

Setting up Local Development

First, clone this repository:

git clone https://github.com/kazuar/flask_mapbox.git

You can use pip, virtualenv and virtualenvwrapper to install the requirements:

pip install -r requirements.txt

Make sure you have npm and bower installed on your machine (for javascript dependencies):

bower install

Create setting.py file for the MAPBOX_ACCESS_KEY:

MAPBOX_ACCESS_KEY = '<MAPBOX_ACCESS_KEY>'	

Start the server by running start.sh:

sh start.sh

Browse to localhost for the index page

Mapbox JS page

Mapbox GL page

About

Visualize route on map using Flask and Mapbox


Languages

Language:HTML 60.3%Language:Python 38.9%Language:Shell 0.8%