0.01
No commit activity in last 3 years
No release in over 3 years
convert from zip-code to japan address (include Roman address)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0
~> 3.0

Runtime

 Project Readme

JpZipCode

Gem Version Build Status Test Coverage Code Climate

convert from zip-code to japan address (include Roman address)

Installation

Add this line to your application's Gemfile:

gem 'jp_zip_code'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jp_zip_code

Usage

address = JpZipCode.search '100-0001'

address['pref_code']     # => '13'
address['pref_kanji']    # => '東京都'
address['city_kanji']    # => '千代田区'
address['town_kanji']    # => '千代田'
address['pref_kana']     # => 'トウキョウト'
address['city_kana']     # => 'チヨダク'
address['town_kana']     # => 'チヨダ'
address['pref_roman']    # => 'Tokyo-To'
address['city_roman']    # => 'Chiyoda-Ku'
address['town_roman']    # => 'Chiyoda'
address['zip_code']      # => '1000001'

JpZipCode.update         # update json file

License

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