JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q52359F
  • License ISC

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vn-local-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Nguồn data vn-local

    https://www.gso.gov.vn/phuong-phap-thong-ke/danh-muc/don-vi-hanh-chinh/

    Install

    $ npm install @natpkg/vn-local

    Functions

    Function Desciption
    getProvinces() Lấy danh sách các tỉnh/thành phố
    getProvinceByCode() Lấy thông tin tỉnh/thành phố
    getDistricts() Lấy danh sách các huyện/quận
    getDistrictByCode() Lấy thông tin huyện/quận
    getWards() Lấy danh sách các xã/phường
    getWardByCode() Lấy thông tin xã/phường
    getDistrictsByProvinceCode(provinceCode) Lấy danh sách huyện/ quận theo mã tỉnh
    getWardsByDistrictCode(districtCode) Lấy danh sách phường/ xã theo mã huyện
    searchAndPaginateDistricts(searchString, page, pageSize) Lấy danh sách theo page
    searchAndPaginateProvinces(searchString, page, pageSize) Lấy danh sách theo page
    searchAndPaginateWards(searchString, page, pageSize) Lấy danh sách theo page