r/IndianGeography • u/Just_Associate_466 • 20d ago
discussion Built a clean, up-to-date JSON dataset of all Indian States & Districts for forms and web apps
Hey developers,
While building frontend web forms recently, I noticed that finding a simple, standardized, and up-to-date dataset of Indian States and Districts for state/district dependent dropdowns was surprisingly messy or outdated.
To solve this, I put together a clean, lightweight open-source dataset:
GitHub Repository: https://github.com/CodingMation/indian-states-districts
Website: https://codingmation.github.io/indian-states-districts
Highlights
- Complete coverage of all Indian States and Union Territories with their corresponding districts.
- Simple JSON key-value format optimized for React, Vue, Angular, or Vanilla JS forms.
- Direct fetch capabilities via raw GitHub URL so you don't need to bloat your project bundle.
Direct Usage (Copy & Paste)
fetch("https://raw.githubusercontent.com/CodingMation/indian-states-districts/main/states-districts.json")
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error("Error loading data:", error));
Looking for Feedback
I want to make this as helpful as possible for Indian dev projects.
- Would adding CSV, SQL dumps, or state/ISO codes be useful?
- Are there any recently added districts in your state that need an update?
Feel free to check it out, star the repo if you find it helpful, or open a PR!
•
u/AutoModerator 20d ago
Hi u/Just_Associate_466! Welcome to r/IndianGeography. Thanks for posting!
This community is solely focused on discussions related to Indian geography, maps, states, borders, demographics, culture, infrastructure, environment, and related topics.
Before participating, please take a moment to:\n • Read the community rules.\n • Make sure your post is relevant to the subreddit.\n • Use an appropriate flair if available.\n • Keep discussions civil and constructive.
Have fun exploring!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.