Ruby | 13:41 | require 'rubygems' require 'net/http' require 'json' latlng = "35.699129,139.774289" # "çµåº¦,緯度" def geocode(latlng) baseUrl = "http://maps.google.com/maps/api/geocode/json" reqUrl = "#{baseUrl}?latlng=#{latlng}&sensor=false&language=ja" resp = Net::HTTP.get_response(URI.parse(reqUrl)) status = JSON.parse(resp.body) return status['results'][1]['formatted_address'] end puts geocode(la
{{#tags}}- {{label}}
{{/tags}}