Skip to content
forked from pcofilada/psgc

Provides PSGC (Philippine Standard Geographic Code) data.

Notifications You must be signed in to change notification settings

sketchminds/psgc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

import { regions, provinces, municipalities } 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')

TODO

  • Add barangays
  • Add additional information about regions, provinces and municipalities
  • Add test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

License

The package is available as open source under the terms of the MIT License.

About

Provides PSGC (Philippine Standard Geographic Code) data.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%