# GeoKit: How to display an address research in a view?

**URL:** <https://www.ruby-forum.com/t/geokit-how-to-display-an-address-research-in-a-view/126628>\
**Category:** Rails\
**Created:** [January 20, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/geokit-how-to-display-an-address-research-in-a-view/126628 "2008-01-20T18:03:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcrj45](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f1d935/32.png) [@mcrj45](https://www.ruby-forum.com/u/mcrj45)\
**Post date:** [January 20, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/geokit-how-to-display-an-address-research-in-a-view/126628/1 "2008-01-20T18:03:56Z")

</div>

Hi,  
maybe its a little complex issue/request, but has someone here an idea  
how I can display an address research with GeoKit in GoogleMaps?

I’m a really beginner, so maybe I didn’t get the point so far. I have  
installed the GeoKit Plugin, look in the test case (there I didn’t find  
any view htmls), setup my own Google Api Key, but didn’t smarter ;-).

How can I use GeoKit result in a view? For my test I have put a address  
hardcode in a controller:

class GeokittestController \< ApplicationController  
include GeoKit::Geocoders  
def stadt  
res=MultiGeocoder.geocode(‘Rathausplatz, MÃ¼nchen, DE’)  
puts res.ll  
ll=latitude,longitude  
end  
end

Now I would like to use the result from stadt (I’m sure that I do a  
mistake here…). How can I now use the result? Must I use res or do I  
have to work with ll in the view?

Is it general possible to search for an address with GeoKit?

For displaying I have only found in another thread:  
\<% content\_for :script do -%\>  
  
  
\<% end -%\>

How could I use the ll/res for such a view (must use the variables for  
GLatLng I think) and is map\_canvas a standard div/view, cause I saw them  
also on other pages?

Maybe one of you could help me short on this topic, I didn’t have found  
a tutorial for this on the net and I’m relativly new with OO, maybe that  
it the reason were I didn’t get it.

Thanks in advance for any kind of idea/help,  
Knut
