Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 928 Bytes

README.md

File metadata and controls

52 lines (37 loc) · 928 Bytes

Store Locator

This project contain python code to query coordinates from adresses via Google maps api or Geocode Nomatim, and leaftlet library to draw marker on a map.

Coordinates query

Excel source file This script add Latitude and Longitude to the xls file and generate resellers.js for leaftlet map.

Requirements

pip install xlrd
pip install xlutils

and

pip install googlemaps

or

pip install geopy

Launch

Set your var and api key and launch:

python getLatLongGoogleMaps.py
python getLatLongNomatim.py

leaflet maps

Resulting map

Marker-clustering

Leaflet marker clusturing is a submodule from https://github.com/Leaflet/Leaflet.markercluster

Requirements

Inside Leaflet.markercluster

npm install -g jake
cd  Leaflet.markercluster
npm install

Demo

Open marker-clustering-resellers.html in your browser