Philippine Standard Geographic Code (PSGC)
Provides PSGC (Philippine Standard Geographic Code) data for your application.
Installation
PSGC is available via npm.
$ npm install --save psgc
Or you can use yarn.
$ yarn add psgc
Usage
Import psgc into your app.
;
Use the methods all
, find
, or filter
to get the data you need.
regionsall // To get all regionsregions // To get a specific region, pass the exact region nameregions // To get a list of all regions with names that contain the argument; case-insensitiveprovincesallprovincesregionsmunicipalitiesallmunicipalitiesmunicipalitiesbarangaysallbarangaysbarangays
TODO
- Add additional information about regions, provinces, municipalities and barangays
- Add test
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
License
The package is available as open source under the terms of the MIT License.