# SoraGeocoding ## Installation Add this line to your application's Gemfile: ```ruby gem 'sora_geocoding' ``` And then execute: $ bundle Or install it yourself as: $ gem install sora_geocoding ## Usage ### Search ##### No options ``` SoraGeocoding.search('Tokyo') => {:site=>"geocoding", :data=>"\n\n1.2\n
Tokyo
\n\n35.676192\n139.650311\n35,40,34.291\n139,39,1.118\n\n8Q7XMMG2+F4\nhttps://www.geocoding.jp/?q=Tokyo\nno\n東京都\n
\n"} ``` ##### Optional - set options - site: 'yahoo' - yahoo_app_id: 'xxxxxxxx' - Get the ClientId: https://developer.yahoo.co.jp/start/ ``` SoraGeocoding.search('東京都', {site: 'yahoo', yahoo_appid: 'xxxxxxxx'}) => {:site=>"yahoo", :data=>"\n1179319812000.03613112東京都世田谷区point139.65324950,35.64657460139.58242700,35.59004000 139.68655700,35.68297400