Philippines
Provides data about the Philippines that you may need in your applications.
Data in this gem was taken from Wikipedia and the following repos:
Installation
Add this line to your application's Gemfile:
gem 'philippines', '~> 0.0.1.pre'
And then execute:
$ bundle
Or install it yourself as:
$ gem install philippines --pre
Demo
The following demo uses JSON files generated by a simple program that uses this gem.
Usage
This gem provides the following constant arrays:
Philippines::REGIONSPhilippines::PROVINCESPhilippines::CITIESPhilippines::MUNICIPALITIES-
Philippines::MUNICIPALITIES_WITH_PROVINCE- to differentiate between similarly named municipalities e.g. "San Francisco, Agusan del Sur" and "San Francisco, Cebu"
It also provides the following hashes:
Philippines::REGION_DATAPhilippines::PROVINCE_DATA
TODO
- Find out the 5 incorrect Municipalities
- Add baranggays
- Create a zip-code suggestion feature based on data from
nadarei/philippines - Add additional information about regions and provinces
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) - Create new Pull Request