nepali_address_plus 0.0.1 copy "nepali_address_plus: ^0.0.1" to clipboard
nepali_address_plus: ^0.0.1 copied to clipboard

Comprehensive, zero-dependency Nepal administrative division data and lookup utilities — Zone (legacy), Province, District, Local Level, and Ward — sourced and verified against MoFAGA (Ministry of Fed [...]

0.0.1 #

Initial scaffold.

  • Full hierarchy models: Zone, Province, District, LocalLevel, LocalLevelType, Ward.
  • Complete, cross-checked data for all 14 legacy zones, 7 provinces, and 77 districts (province + zone membership verified for full id coverage, no duplicates, no gaps).
  • Complete LocalLevel data for all 755 local levels (name, type, and district assignment), derived from official administrative boundary data and cross-matched against this package's own district list with zero unmatched rows. Type breakdown (6/11/277/461) verified against the source's published statistics.
  • nameNp (Devanagari names) and wardCount are intentionally null pending a verification pass against MoFAGA / Election Commission of Nepal — not guessed or backfilled from unverified sources.
  • NepaliAddress static lookup API covering the whole hierarchy.
  • Data-integrity test suite (test/data_integrity_test.dart), covering id uniqueness, cross-tier reference validity, and type-count checks.
  • Dataset stored as JSON under data/ as the single source of truth, with lib/src/data/*.g.dart generated from it via tool/generate_data.dart. Runtime lookups stay synchronous, zero-dependency, and tree-shakeable — no asset bundle and no Flutter dependency.
  • test/json_sync_test.dart guards against the JSON and the generated Dart drifting apart, plus meta.count accuracy and id uniqueness in the JSON.
  • Standard package layout (lib/, lib/src/, test/, example/, tool/), analysis_options.yaml with strict language modes, and .gitignore.
  • Runnable example/example.dart covering hierarchy traversal and legacy zone resolution.
  • Flutter example app in example/ demonstrating the cascading address picker, legacy zone migration, and live dataset coverage, plus a pure-Dart bin/cli_demo.dart. Covered by 6 widget tests.
4
likes
150
points
105
downloads

Documentation

API reference

Publisher

verified publisherghimiresabin.com.np

Weekly Downloads

Comprehensive, zero-dependency Nepal administrative division data and lookup utilities — Zone (legacy), Province, District, Local Level, and Ward — sourced and verified against MoFAGA (Ministry of Federal Affairs and General Administration).

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

More

Packages that depend on nepali_address_plus