# Google Geolocation

**URL:** <https://www.ruby-forum.com/t/google-geolocation/238976>\
**Category:** Rails\
**Created:** [February 6, 2014, 1:28am UTC](https://www.ruby-forum.com/t/google-geolocation/238976 "2014-02-06T01:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [February 6, 2014, 1:28am UTC](https://www.ruby-forum.com/t/google-geolocation/238976/1 "2014-02-06T01:28:25Z")

</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) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in`require’  
from pdev.rb:6:in `’

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:** ![BeeRich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d26b3c/32.png) [@BeeRich](https://www.ruby-forum.com/u/BeeRich)\
**Post date:** [February 6, 2014, 2:37am UTC](https://www.ruby-forum.com/t/google-geolocation/238976/2 "2014-02-06T02:37:58Z")

</div>

On Wed, Feb 5, 2014 at 4:26 PM, BeeRich [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi folks. Trying to get google-geo to work, but I am seeing errors.
> 
> #!/usr/bin/ruby
> 
> require ‘Google-geo’

> pry  
> 2.0.0 (main):0 \> require ‘google/geo’  
> =\> true

## HTH,

Hassan S. ------------------------ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[Hassan Schroeder | about.me](http://about.me/hassanschroeder)  
twitter: @hassan
