# Graticule error?

**URL:** <https://www.ruby-forum.com/t/graticule-error/116984>\
**Category:** Ruby\
**Created:** [October 11, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/graticule-error/116984 "2007-10-11T21:31:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamwave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Post date:** [October 11, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/graticule-error/116984/1 "2007-10-11T21:31:54Z")

</div>

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!
