Package Exports
- vn-local-plus
- vn-local-plus/src/index.js
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 i vn-local-plus
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 |