Module: ClassMethods

Included in:
Mapit
Defined in:
lib/mapit/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#url_for_address(query) ⇒ Object



4
5
6
# File 'lib/mapit/class_methods.rb', line 4

def url_for_address(query)
  %{http://maps.google.com/maps?f=q&output=embed&q=#{URI.escape(query)}}
end