Gem to identify indian pincodes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
indian_pincode.gemspec

README.md

IndianPincode Gem Version

Simple gem to get city, district, state and post office name for a given pin code.
Bundled with yaml data.

Installation

Add this to your Gemfile:

gem 'indian_pincode'

Or install it yourself as:

$ gem install indian_pincode

Usage

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Adds flying cat')
  4. Push to the branch (git push origin new-feature)
  5. Create new Pull Request