blob: b597e2b66818e99375278cab69f586fe38cd7fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
doctype XML
kml xmlns="http://www.opengis.net/kml/2.2"
document
placemark id="route_#{@route.id}"
name = @route.name
inactive true
= @route.geometry.kml_representation.html_safe
- @route.stop_areas.where("latitude is not null and longitude is not null").each_with_index do |stop_area, index|
placemark id="#{stop_area.id}"
name = "#{stop_area.name} (#{index+1})"
stop_area_type_label = t("area_types.label.#{stop_area.stop_area_type}")
- if stop_area.id==@route.stop_areas.first.id
departure true
- elsif stop_area.id==@route.stop_areas.last.id
arrival true
= stop_area.geometry.kml_representation.html_safe
|