Simple gem to get city, district, state and post office name for a given pin code.
Bundled with yaml data.
Add this to your Gemfile:
gem 'indian_pincode'
Or install it yourself as:
$ gem install indian_pincode
IndianPincode.identify('395009')
# => {:city=>"Surat", :district=>"Surat", :state=>"Gujarat", :post_office_name=>"Surat Navyug College"}
# First run will take a while, as the yaml has to be loaded
- Fork it
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Adds flying cat'
) - Push to the branch (
git push origin new-feature
) - Create new Pull Request