Hey everyone, have created a public API to find the parliamentary and
assembly constituency at any given coordinate, along with the election date.

Try it out:
https://api.mapbox.com/v4/planemad.3picr4b8/tilequery/*78.0714,32.2263*
.json?limit=5&radius=0&dedupe=true&access_token=pk.eyJ1IjoicGxhbmVtYWQiLCJhIjoiY2p1MzBiMGtzMGF1NTRkanR6eXdkOGg5MiJ9.vuDqyahjLB1Bk_5bGp2YUw
<https://api.mapbox.com/v4/planemad.3picr4b8/tilequery/78.0714,32.2263.json?limit=5&radius=0&dedupe=true&access_token=pk.eyJ1IjoicGxhbmVtYWQiLCJhIjoiY2p1MzBiMGtzMGF1NTRkanR6eXdkOGg5MiJ9.vuDqyahjLB1Bk_5bGp2YUw>

Replace the longitude,latitude part to any other coordinate within India.
Let me know if there are any errors.

How it was done:
- Uploaded the electoral boundaries from datameet
<https://github.com/datameet/maps> to Mapbox <https://www.mapbox.com> to
create a vector tileset
<https://docs.mapbox.com/studio-manual/reference/tilesets/>
- Use the Mapbox tilequery API
<https://docs.mapbox.com/help/interactive-tools/tilequery-api-playground/>
to query features within the tileset

Note: The API call uses my personal access token, consider signing up for a
free Mapbox account and replacing with your own token if you plan any heavy
usage.

On Tue, Mar 26, 2019 at 8:23 PM Arun Ganesh <[email protected]> wrote:

>
>
> On Tue, Mar 26, 2019 at 6:48 PM Devdatta Tengshe <[email protected]>
> wrote:
>
>> I have scraped the data, and uploaded it here:
>>
>> https://github.com/devdattaT/mah_election_data
>>
>>
>>
> Thanks Devdatta.
>
> Few other states also have detailed shapes available on their GIS servers
> that is downloadable. Since license is never mentioned, can we take it that
> the work by default falls under GODL
> <https://commons.wikimedia.org/wiki/Template:GODL-India> and start
> uploading it on /datameet?
>
>
>>
>> Regards,
>> Devdatta
>>
>>
>> On Tue, Mar 26, 2019 at 5:39 PM rigved shenai <[email protected]>
>> wrote:
>>
>>> Constituency boundaries are shown differently in multiple sources. The
>>> Datameet dataset is good for Rural constituencies, but not accurate in case
>>> of Urban areas.
>>> I had inquired for those datasets to MapMyIndia but the cost they quoted
>>> was exorbitant. and accuracy was not too good either. Maharashtra
>>> boundaries are shown here in MSRAC portal(Choose "Electoral" in base layer
>>> and zoom in)
>>> http://mrsac.maharashtra.gov.in/geoportal/
>>> If someone is successful in extracting the shapefiles from this, Please
>>> let me know.
>>> If anyone wants to collaborate on data viasualization project on Indian
>>> Elections, Feel free to connect.
>>> - Rigved Shenai
>>> 9594747357
>>>
>>> On Saturday, March 16, 2019 at 12:06:51 AM UTC+5:30, Arun Ganesh wrote:
>>>>
>>>> With the upcoming elections, this would be a hot dataset that everyone
>>>> will be looking for. The best available dataset on the web right now is on
>>>> the datameet repository
>>>> <https://github.com/datameet/maps/tree/master/parliamentary-constituencies>
>>>> updated during the previous elections in 2014.
>>>>
>>>> Does anyone know if there have been changes in the constituency
>>>> boundaries since 2014? Also the existing boundaries are fairly generalized
>>>> resulting in an accuracy of around a km.
>>>>
>>>> See this comparison for Bengaluru: 1) PC shapes from datameet 2) AC
>>>> shapes from datameet 3) PC shapes from Karnataka KSRAC
>>>> [image: new1.gif]
>>>>
>>>> The KSRAC boundaries was queried from their geoserver
>>>> <https://stg1.ksrsac.in/maps/rest/services/Polling/Polling_PC/MapServer/0/query?where=OBJECTID+is+not+null&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&f=geojson>
>>>>  and
>>>> are super accurate upto the street level, but is limited to only Karnataka.
>>>> Does anyone know how we can source this for the entire country?
>>>>
>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to