Sha256: 9210ed41a2b66c4952b00f4d5648046560b9661d8eddbc38e01ddaa0ef0b966a
Contents?: true
Size: 322 Bytes
Versions: 16
Compression:
Stored size: 322 Bytes
Contents
require 'rack-geo' class Caboodle::Geo < Caboodle::Kit optional [:zip, :postcode, :address, :latitude, :longitude] before do @latitude, @longitude, @uncertainty = 37.0625, -95.677068, 100 @coords = "#{@latitude};#{@longitude} epu=#{@uncertainty}" headers "HTTP_GEO_POSITION" => @coords end end
Version data entries
16 entries across 16 versions & 1 rubygems