🚀 I’m excited to share my new open-source npm package: @olism/bd-geo.
@olism/bd-geo is a JavaScript/TypeScript package that provides structured geographical data for Bangladesh, including divisions, districts, upazilas/thanas, areas, and villages.
The goal is simple: make it easier for developers to work with Bangladesh’s geographical hierarchy without having to maintain their own datasets.
✨ What is @olism/bd-geo?
When building applications that need Bangladesh-specific location data, developers often have to find, clean, structure, and maintain geographical datasets themselves.
This package provides that data in a developer-friendly structure that can be used directly in JavaScript and TypeScript projects.
🗺️ What’s Included?
The package currently provides geographical data such as:
- 🇧🇩 Divisions
- 📍 Districts
- 🏘️ Upazilas / Thanas
- 📌 Areas
- 🏡 Villages
This makes it suitable for applications that need hierarchical location data.
💡 Potential Use Cases
@olism/bd-geo can be useful for many types of applications, including:
- 📝 Address and location forms
- 🛒 E-commerce and delivery systems
- 🏠 Real-estate applications
- 🗺️ Location-based applications
- 🗄️ Database seeding
- 📊 Data visualization
- 🔎 Location search and filtering
For example, an address form could use the geographical hierarchy to let users select:
Division
↓
District
↓
Upazila / Thana
↓
Area / Village
Enter fullscreen mode Exit fullscreen mode
📦 Installation
Install the package from npm:
npm install @olism/bd-geo
Enter fullscreen mode Exit fullscreen mode
Or with Yarn:
yarn add @olism/bd-geo
Enter fullscreen mode Exit fullscreen mode
🚀 Why I Built It
I wanted to make Bangladesh geographical data easier to consume for developers building real-world applications.
Instead of every project maintaining its own copy of Bangladesh’s location data, a reusable package can provide a common structure that developers can work with directly.
There is still plenty of room to improve the dataset, APIs, documentation, and developer experience — and that’s where community feedback can make a big difference.
🔗 Links
📦 NPM: https://www.npmjs.com/package/@olism/bd-geo
💻 GitHub: https://github.com/mohammad-oliullah/bd-geo
🤝 Contributions & Feedback
The project is open source, and I’d love to hear your feedback, suggestions, bug reports, and ideas for improvement.
If you work with Bangladesh-specific applications and have ideas for useful geographical features or datasets, feel free to contribute or open an issue.
Every contribution and suggestion is welcome. 🙌
If you find the package useful, consider ⭐ starring the repository on GitHub and sharing it with other developers working on Bangladesh-focused applications.