Created
October 12, 2013 05:52
-
-
Save toyama0919/6946286 to your computer and use it in GitHub Desktop.
rubyのgeocoderの使い方 ref: http://qiita.com/toyama0919/items/3e165e41232266edbb23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install geocoder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'geocoder' | |
| require 'pp' | |
| Geocoder.configure(:language => :ja, :units => :km ) | |
| pp Geocoder.address("東京タワー") | |
| pp Geocoder.search("東京タワー") | |
| pp Geocoder.search("210.194.198.60") | |
| pp Geocoder.address("210.194.198.60") | |
| pp Geocoder.search("106.187.50.98") | |
| pp Geocoder.address("106.187.50.98") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment