Skip to content

Query coordinates from address in excel file and place marker on js map

Notifications You must be signed in to change notification settings

norbertFeron/storeLocator

Repository files navigation

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

About

Query coordinates from address in excel file and place marker on js map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published