# Can Anybody Tell How to do Google Map Mashup?

**URL:** <https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450>\
**Category:** Rails\
**Created:** [February 16, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450 "2009-02-16T15:22:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 16, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/1 "2009-02-16T15:22:28Z")

</div>

Hi!!!

I am using rails 2.2.2 , n want to mashup google map with mysql 5.0  
database,  
can anybody please tell me this step by step???

Thanks!!!

---

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 16, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/2 "2009-02-16T16:43:07Z")

</div>

Check out Andre L.’ blog for information about his Geokit plugin for  
Rails - [http://earthcode.com/](http://earthcode.com/) .

As for step by step instructions, it depends on the data set you’re  
mashing.

---

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 17, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/3 "2009-02-17T15:00:44Z")

</div>

Hello !!!

Thanks for your help…but I was reffering that code only… but was  
geeting errrors as follows:

1.uninitialized constant : XMLRPC error

1. You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occurred while evaluating nil.each

Extracted source (around line #27):

24: map.addControl(new GSmallMapControl());  
25: map.centerAndZoom(new GPoint(-122.443882, 37.769079),  
5);  
26:  
27: \<removed\_email\_address@domain.invalid do |place|%\>  
28: var point = new GPoint(\<%=place[:longitude]%\>,\<%=place  
[:latitude]%\>);  
29: var marker = createMarker(point,’

\<%=h place  
[:description]%\>
’)  
30: map.addOverlay(marker);

so will you please tell me how to solve them???

---

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 17, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/4 "2009-02-17T15:49:03Z")

</div>

Besides geokit, you could also investigate ym4r [\*].  
I personally started with it but dropped it and wrote all the  
javascript manually.

Marko

[\*] [http://ym4r.rubyforge.org/](http://ym4r.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 18, 2009, 11:40am UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/5 "2009-02-18T11:40:47Z")

</div>

I’m not exactly sure what might be causing the first error you mention  
here,  
but the second one seems to be the result of the @places array not being  
initialized by the controller.

---

<div class="post-metadata">

**Author:** ![VrishaliSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7ab992/32.png) [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Post date:** [February 18, 2009, 11:50am UTC](https://www.ruby-forum.com/t/can-anybody-tell-how-to-do-google-map-mashup/160450/6 "2009-02-18T11:50:13Z")

</div>

I’m not exactly sure what might be causing the first error you mention  
here,  
but the second one seems to be the result of the @places array not being  
initialized by the controller.
