]> git.openstreetmap.org Git - rails.git/blob - app/helpers/geocoder_helper.rb
Cleanup.
[rails.git] / app / helpers / geocoder_helper.rb
1 module GeocoderHelper
2   def result_to_html(result)
3     html_options = {}
4     #html_options[:title] = strip_tags(result[:description]) if result[:description]
5     html = ""
6     html << result[:prefix] if result[:prefix]
7     html << link_to_function(result[:name], "setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})", html_options) 
8     html << result[:suffix] if result[:suffix]
9     return html
10   end
11 end