nepali_address_plus 0.0.1
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
LocalLeveldata 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) andwardCountare intentionallynullpending a verification pass against MoFAGA / Election Commission of Nepal — not guessed or backfilled from unverified sources.NepaliAddressstatic 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, withlib/src/data/*.g.dartgenerated from it viatool/generate_data.dart. Runtime lookups stay synchronous, zero-dependency, and tree-shakeable — no asset bundle and no Flutter dependency. test/json_sync_test.dartguards against the JSON and the generated Dart drifting apart, plusmeta.countaccuracy and id uniqueness in the JSON.- Standard package layout (
lib/,lib/src/,test/,example/,tool/),analysis_options.yamlwith strict language modes, and.gitignore. - Runnable
example/example.dartcovering 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-Dartbin/cli_demo.dart. Covered by 6 widget tests.