Graticule error?

M

Michael Linfield

I've been wanting to just play around with graticule but i cant seem to
get it to work properly.

require 'rubygems'
require 'graticule'

module Graticule

geocoder = Graticule.service:)google).new "api_key"
grid = geocoder.locate "1100 N. GRAND AVENUE, WALNUT, CA"
puts "Long/Lat = #{grid.coordinates}"
puts "Grid Location Country = #{grid.country}"
end

############
Outputs ----


C:\Documents and Settings\User\Desktop>grid.rb
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/clean_logg
er.rb:5:in `remove_const': constant Logger::Format not defined
(NameError)
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/clean_logger.rb:5
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt.rb:31
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/graticule-0.2.6/lib/graticule.rb:3
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `re
quire'
from C:/Documents and Settings/User/Desktop/grid.rb:2

C:\Documents and Settings\User\Desktop>grid.rb > text.txt
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/clean_logg
er.rb:5:in `remove_const': constant Logger::Format not defined
(NameError)
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/clean_logger.rb:5
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt.rb:31
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/graticule-0.2.6/lib/graticule.rb:3
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `re
quire'
from C:/Documents and Settings/User/Desktop/grid.rb:2

########

Ive been trying to pull this off in rails as well but its a work in
progress. Any ideas?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top