0.0
No commit activity in last 3 years
No release in over 3 years
Geocoding.jp API client for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

GeocoderJP

This gem is the best solution for geocoding in Japan. Backend is http://www.geocoding.jp/.

Other geocoding gem, such as alexreisner/geocoder is awesome but its backend(Google, Yahoo, Bing, ..etc) is not good especially in Japan.

Compatibility

The following environments have been tested: ruby 1.9.3p0 + OSX Lion

Installation

$ gem install geocoder_jp

Usage

In irb:

$ irb
> require 'geocoder_jp'
> GeocoderJP.get("東京タワー")
 => {"version"=>"1.1", "address"=>"東京タワー", "coordinate"=>{"lat"=>"35.658599",  ...

That's it.

In CLI:

After install this gem, you can use geojp command.

$ geojp "東京タワー"
Success!
{"version"=>"1.1",
 "address"=>"東京タワー",
 "coordinate"=>
  {"lat"=>"35.658599",
   "lng"=>"139.745443",
   "lat_dms"=>"35,39,30.956",
   "lng_dms"=>"139,44,43.595"},
 "url"=>
  "http://www.geocoding.jp/?q=%E6%9D%B1%E4%BA%AC%E3%82%BF%E3%83%AF%E3%83%BC",
 "needs_to_verify"=>"yes",
 "google_maps"=>"東京タワー, 〒105-0011 東京都港区芝公園4丁目2−8"}