0.0
No release in over 3 years
Low commit activity in last 3 years
This is a Rails engine for Japanese cities by zipcode.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 0.4

Runtime

>= 4.2.0
 Project Readme

Japan zipcode

Gem Version Build Status

This is a Rails engine for Japanese cities by zipcode.

Usage

You can add it to your Gemfile with:

gem 'japan_zipcode'

Then run bundle install

Next, you need to run the generator:

$ rails g japan_zipcode:install

Then run rails db:migrate

Last, fill in cities to the database:

$ rake japan_zipcode_data

Get city

JapanCity.get('1510053')
=> #<JapanCity id: 39560, zipcode: "1510053", town: "東京都", city: "渋谷区", prefecture: "代々木", created_at: "2017-02-17 08:46:21", updated_at: "2017-02-17 08:46:21">

License

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