Provides PSGC (Philippine Standard Geographic Code) data for your application.
PSGC is available via npm.
$ npm install --save psgc
Or you can use yarn.
$ yarn add psgc
Import psgc into your app.
import { regions, provinces, municipalities, barangays } from 'psgc';
Use all
or find
function to get the data you need.
regions.all() // To get all regions
regions.find('Ilocos Region') // Just past region name to get specific region
provinces.all()
provinces.find('La Union')
municipalities.all()
municipalities.find('Agoo')
barangays.all()
barangays.find('San Nicolas East')
- Add additional information about regions, provinces, municipalities and barangays
- Add test
- 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
The package is available as open source under the terms of the MIT License.