Class JpAddress
In: lib/jp_address.rb
Parent: ActiveRecord::Base

Model attributes:

  jiscode
  zipcode_old
  zipcode
  prefecture
  city
  address

Methods

Classes and Modules

Class JpAddress::Geocode

Public Class methods

Search by (old|new) zipcode

Usage1 :Search by old type Zipcode when code.length is 3 or 5
Usage2 :Search by normal Zipcode code.length is 7
ATTENTION :code must be String!!

Called from migration and rake task.

Public Instance methods

Get latitude and longitude via Post2geo API (nyanjiro.no-blog.jp/web20/2007/07/post_df4b.html)

Get url for search result page of GoogleMaps

[Validate]