aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/access_points/index.kml.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/access_points/index.kml.erb')
-rw-r--r--app/views/access_points/index.kml.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/access_points/index.kml.erb b/app/views/access_points/index.kml.erb
new file mode 100644
index 000000000..bbcf19d23
--- /dev/null
+++ b/app/views/access_points/index.kml.erb
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<kml xmlns="http://www.opengis.net/kml/2.2">
+ <Document>
+ <% @access_points.where("latitude is not null and longitude is not null").each do |access_point| %>
+ <Placemark id="<%= access_point.id %>" >
+ <name><%= access_point.name %></name>
+ <access_point_type><%= access_pointaccess_point_type %></access_point_type>
+ <%= access_point.geometry.kml_representation.html_safe %>
+ </Placemark>
+ <% end %>
+ </Document>
+</kml>