Skip to content
pubscout

bd_locations

0.2.0, released 2 weeks ago by robiulsuny.com

Offline Bangladesh geographic dataset with bilingual search and lookup utilities.

WASM-ready
$ flutter pub add bd_locations
Source repository

What it does

Provides const Dart objects for all Bangladesh administrative units (Divisions, Districts, Upazilas, Unions, Post Offices). Includes synchronous ID lookup, hierarchical navigation, bilingual/legacy‑spelling search, postcode validation, address formatting and distance calculations.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need Bangladesh location data without network calls
  • Require fast, zero‑dependency lookups for addresses or postal codes
  • Building forms or validators that need Bangladeshi administrative hierarchy

Skip it when

  • Need worldwide or dynamic geographic data
  • Require map tiles or live geofencing
  • Dataset must be updated frequently from a remote source

Strengths

  • Zero external dependencies
  • 100 % offline and synchronous access
  • Bilingual (English & Bengali) names and legacy spelling support
  • Full hierarchical navigation and address formatting

Weaknesses

  • Covers only Bangladesh
  • Static dataset – no automatic updates
  • No map or UI components

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:bd_locations/bd_locations.dart';

void main(){
  final dhaka = BdLocations.getDistrictById(47);
  print('District: ${dhaka?.nameEn} (${dhaka?.nameBn})');
  final nearest = BdLocations.findNearestDistrict(23.81, 90.41);
  print('Nearest district: ${nearest?.nameEn}');
}

Alternatives

Packages that do the same job and could replace bd_locations.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.