@ph-dev-utils/address-data
v0.1.0
Published
Per-city PSGC barangay chunks for @ph-dev-utils/address-* pickers, served via CDN (jsDelivr). One small JSON file per city/municipality. Not a code dependency.
Maintainers
Readme
@ph-dev-utils/address-data
Per-city PSGC barangay chunks for the @ph-dev-utils/address-* pickers. One small JSON file per city/municipality (1,634 files, 42,046 barangays total — PSA Q4 2024 PSGC), each an array of { code, name }.
This is not a code dependency — you don't import it. The address picker lazy-fetches a single city's file on demand from the jsDelivr CDN:
https://cdn.jsdelivr.net/npm/@ph-dev-utils/[email protected]/barangays/072217.jsonSplitting barangays into per-city files (vs. one ~4 MB bundle) keeps the picker's bundle tiny — only the selected city's barangays (usually a few KB) are fetched.
Data: PSA Q4 2024 PSGC via @ph-dev-utils/psgc-barangays. Each file's barangays join @ph-dev-utils/core's CityMunicipality.code.
License
MIT
