一つの GeoHex を KML にして送り出すワンファイル・サーバを作ることができました。 the code #server.rb require 'rubygems' require 'sinatra/base' require 'haml' require 'gh.rb' # @see http://d.hatena.ne.jp/hfu/20110224 class App < Sinatra::Base get '/' do redirect '/geohex/hcawP' end get '/geohex/:geohex' do |geohex| content_type 'application/vnd.google-earth.kml+xml' # easier than apache! #content_type 'text/plain' # good for testin