# Ruby & Javascript

**URL:** <https://www.ruby-forum.com/t/ruby-javascript/157364>\
**Category:** Rails\
**Created:** [January 9, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/ruby-javascript/157364 "2009-01-09T23:33:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernesto\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ecae2f/32.png) [@Ernesto\_R](https://www.ruby-forum.com/u/Ernesto_R)\
**Post date:** [January 9, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/ruby-javascript/157364/1 "2009-01-09T23:33:39Z")

</div>

Hey guys!

Does anyone knows how to a ruby program communicate with the Google API,  
which one is written in Javascript ? I’ve heard something about a  
wrapper to  
do the communication, but i didn’t find anything yet.

I know a plugin for rails can do that (geokit), but i don’t know how.  
There  
is a method (geocode) that use the javascript function to return the XML  
data about a address.

So, please help me!

Thanks in advance!,  
Ernesto

---

<div class="post-metadata">

**Author:** ![Ernesto\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ecae2f/32.png) [@Ernesto\_R](https://www.ruby-forum.com/u/Ernesto_R)\
**Post date:** [January 9, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/ruby-javascript/157364/2 "2009-01-09T23:48:53Z")

</div>

Google API? You mean Google Maps API right? I’m not sure about ruby  
but for rails there is a very good plugin  
[http://github.com/andre/geokit-rails/tree/master](http://github.com/andre/geokit-rails/tree/master)  
that has good documentation on the page… I used this for a store  
locator and it’s a very good tool…

I guess you could look at the plugin code and transfer that to a plain  
ruby script if you wanted too…

---

<div class="post-metadata">

**Author:** ![Ernesto\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ecae2f/32.png) [@Ernesto\_R](https://www.ruby-forum.com/u/Ernesto_R)\
**Post date:** [January 10, 2009, 12:10am UTC](https://www.ruby-forum.com/t/ruby-javascript/157364/3 "2009-01-10T00:10:36Z")

</div>

yeah, sorry, I mean google maps API.

I’ll take a look at the code. It’s something like that, i want to know  
how  
to write my own code over the Gmaps API.
