From: Nick Black Date: Tue, 1 May 2007 13:24:44 +0000 (+0000) Subject: geocoder stuff - views X-Git-Tag: live~8502 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b6ae16bc83e4c9f41b17266646917cc0c380d8a4?hp=c9ffb0e45c8960d27cb42550b960d7434acdcc1f;ds=inline geocoder stuff - views --- diff --git a/app/views/geocoder/_geocoder.rhtml b/app/views/geocoder/_geocoder.rhtml new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/geocoder/results.rhtml b/app/views/geocoder/results.rhtml new file mode 100644 index 000000000..3d7ee9060 --- /dev/null +++ b/app/views/geocoder/results.rhtml @@ -0,0 +1,29 @@ +

Your Search Results for <%= @place_name.capitalize %>

+ + + + + + + +<% @res_ary.each do |hsh| %> + + + + + + + +<% end %> + +
NameCountry + +
+<%= hsh['name'] %> + +<%= hsh['countryname'] %> + +<%= link_to('Map', url="/index.html?lat=#{hsh['lat']}&lon=#{hsh['lon']}&zoom=12") %> + +<%= link_to('API', url="/#FIXME") %> +