Bhuvan panchayat boundaries and graphql API

93 views
Skip to first unread message

Arun Ganesh

unread,
Jan 21, 2021, 1:39:10 AM1/21/21
to datameet
Just found out that there is a panchayat boundaries explorer on Bhuvan: https://bhuvan-panchayat3.nrsc.gov.in/ . Only raster images, no vector boundaries.

Even more interesting is that there is a graphql API that i spotted while inspecting the network requests. Try out the following curl requests in the terminal:

List of districts in Assam (state code 18)

curl 'https://bhuvan-panchayat3.nrsc.gov.in/graphql' \
-H 'Content-Type: application/json' \
--data-binary $'{"query":"query DistrictQuery($condition: DistrictCondition!) {allDistricts(orderBy: DTNAME_ASC, condition: $condition) { nodes { dtcode dtname }}}","variables":{"condition":{"stcode":"18"}}}'

List of blocks in Assam/Barpeta (state code 18, district code 303)

curl 'https://bhuvan-panchayat3.nrsc.gov.in/graphql' \
-H 'Content-Type: application/json' \
--data-binary $'{"query":"query BlockQuery( $condition: BlockCondition!) { allBlocks(orderBy: BPNAME_ASC, condition: $condition) { nodes { bpcode bpname } }}","variables":{"condition":{"dtcode":"303","stcode":"18"}}}'


 
Reply all
Reply to author
Forward
0 new messages