aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/connection_links/show.kml.slim
blob: 59169dba39a6dda1382f0fbd5af79018c043ca80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
doctype XML

kml xmlns="http://www.opengis.net/kml/2.2" 
  document
    - if @connection_link.geometry
      placemark id="route_#{@connection_link.id}" 
        name = @connection_link.name
        = @connection_link.geometry.kml_representation.html_safe

      placemark id="#{@connection_link.departure.id}" 
        departure true
        = @connection_link.departure.geometry.kml_representation.html_safe
        
      placemark id="#{@connection_link.arrival.id}" 
        arrival true
        = @connection_link.arrival.geometry.kml_representation.html_safe