# Google Geolocation

**URL:** <https://discuss.rubyonrails.org/t/google-geolocation/68495>\
**Category:** rubyonrails-talk\
**Created:** [February 6, 2014, 12:26am UTC](https://discuss.rubyonrails.org/t/google-geolocation/68495 "2014-02-06T00:26:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeeRich](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@BeeRich](https://discuss.rubyonrails.org/u/BeeRich)\
**Post date:** [February 6, 2014, 12:26am UTC](https://discuss.rubyonrails.org/t/google-geolocation/68495/1 "2014-02-06T00:26:46Z")

</div>

Hi folks. Trying to get google-geo to work, but I am seeing errors.

#!/usr/bin/ruby

require 'Google-geo'

mykey = 'blahblahblah' addy1 = '1600 Amphitheatre Parkway, Mountain View, CA' # 37.42246, -122.08394

geo = Google::Geo.new mykey res = geo.locate addy1 puts res.coordinates

…and the error:

/Library/Ruby/Site/2.0.0/rubygems/core\_ext/kernel\_require.rb:55:in `require': cannot load such file -- Google-geo (LoadError) &nbsp;&nbsp;from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' &nbsp;&nbsp;from pdev.rb:6:in `\<main\>'

Not sure why it can’t load it as it’s just installed. I can’t get anything to work in irb either.

Any advice appreciated.

Cheers

---

<div class="post-metadata">

**Author:** ![hassan](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/hassan/32/714_2.png) [@hassan](https://discuss.rubyonrails.org/u/hassan)\
**Post date:** [February 6, 2014, 1:36am UTC](https://discuss.rubyonrails.org/t/google-geolocation/68495/2 "2014-02-06T01:36:45Z")

</div>

2.0.0 (main):0 \> require 'google/geo' =\> true

HTH,
