Skip to content
Electoral map tool
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
js Update Mapbox GL May 20, 2019
.gitignore
CNAME Update CNAME Apr 15, 2019
LICENSE
LINKS.md
README.md Update README.md Apr 10, 2019
index.html Add disclaimer and phase details in modal. Closes #49 #42 May 5, 2019
package-lock.json Disable geolocating if user is outside India. Fixes #34 Apr 8, 2019
package.json Initital commit Apr 5, 2019

README.md

Election Map India

A simple map based tool to locate electoral constituency for voting and candidate details.

Map Data

The tool is built using map APIs from Mapbox and rendered via the Mapbox GL JS engine.

Note: Due to absence of open data from the Election Commission of India, the authenticity of the shown data cannot be verified

API

The electionmap API can be used to retreive constituency details at any coordinate:

https://api.mapbox.com/v4/planemad.3picr4b8/tilequery/<LONGITUDE>,<LATITUDE>.json?limit=5&radius=0&dedupe=true&access_token=<MAPBOX_ACCESS_TOKEN>

Generate a free developer token from Mapbox. For more options check the Mapbox tilequey documentation

Constituency boundaries

Constituency shapefiles sourced from datameet maps and hosted on Mapbox.

Mapbox tilesets

Basemap data

Place locations and street level details are from the OpenStreetMap Project. Data updates on OSM are reflected on the map in a week.

Map style

Basemap showing constituency boundaries with street details designed in Mapbox Studio.

Mapbox GL JS style id planemad/cjoescdh20cl62spey0zj3v19

Contributing

Get the code and start the development server with live preview. Requires node.

git clone https://github.com/publicmap/electionmap.git
cd electionmap
npm install
npm run start

If you made changes to the js scripts, do npm run build to compile the final javascript file to js/dist and commit them before publishing. Do NOT make changes directly to files inside the dist/ folder.

You can’t perform that action at this time.