79 Commits
0b3331c6de
...
ea86c75e7a
145 changed files with 6072 additions and 4725 deletions
-
13administrative.json
-
10agriculture.json
-
10alternative_amenities.json
-
13alternative_routes.json
-
21buildings-entrances.yaml
-
18buildings-figure-ground.yaml
-
21buildings-height.yaml
-
21buildings-start_date.yaml
-
21buildings-type.yaml
-
16buildings.json
-
50car_amenities.json
-
53car_amenities.yaml
-
7car_furniture.json
-
203car_maxspeed.json
-
261car_maxspeed.yaml
-
66car_routes.json
-
77car_routes.yaml
-
124children.json
-
114children.yaml
-
16climbing.json
-
17coal.json
-
154communication.json
-
133communication.yaml
-
13construction.json
-
85craft.json
-
90craft.yaml
-
25culture-media.yaml
-
142culture.json
-
131culture.yaml
-
20culture_religion.json
-
142cycle_amenities.json
-
125cycle_amenities.yaml
-
6cycle_directions.yaml
-
16cycle_routes.json
-
180cycleway_types.yaml
-
17cycleway_width.yaml
-
55detailsBody.html
-
12developable_areas.json
-
142education.json
-
139education.yaml
-
12electric_power.json
-
144emergency.json
-
124emergency.yaml
-
74etymology.yaml
-
113financial.json
-
104financial.yaml
-
14fixme.yaml
-
13footways.yaml
-
14gastro-smoking.json
-
69gastro.yaml
-
247health.json
-
161health.yaml
-
28heritage.json
-
34heritage.yaml
-
16hiking_routes.json
-
13historic.json
-
183index.json
-
10internet.json
-
10kerbs.yaml
-
103lang/ast.json
-
122lang/ca.json
-
113lang/cs.json
-
118lang/de.json
-
73lang/el.json
-
115lang/en.json
-
116lang/es.json
-
67lang/et.json
-
123lang/fr.json
-
113lang/gl.json
-
121lang/hu.json
-
118lang/it.json
-
117lang/ja.json
-
109lang/nb.json
-
113lang/nl.json
-
116lang/oc.json
-
124lang/pl.json
-
122lang/pt-br.json
-
118lang/pt.json
-
79lang/ro.json
-
109lang/ru.json
-
101lang/sr.json
-
19lang/template.json
-
128lang/tr.json
-
87lang/uk.json
-
69law.json
-
76law.yaml
-
8leisure.json
-
40memorial.json
-
10military.json
-
17mtb-routes.json
-
12natural.json
-
16office.json
-
16oil_gas.json
-
18organisations.json
-
10other.json
-
16outdoor.json
-
8paddling.yaml
-
8paddling_amenities.yaml
-
8paddling_hazards.yaml
-
8paddling_routes.yaml
@ -1,16 +1,26 @@ |
|||
{ |
|||
"name": { |
|||
"ast": "Infraestructures", |
|||
"ca": "Serveis", |
|||
"cs": "Občanská vybavenost", |
|||
"de": "Einrichtungen", |
|||
"en": "Amenities", |
|||
"es": "Instalaciones", |
|||
"fr": "Équipement", |
|||
"gl": "Instalacións", |
|||
"hu": "Létesítmények", |
|||
"it": "Infrastrutture", |
|||
"ja": "生活環境", |
|||
"nb": "Fasiliteter", |
|||
"nl": "Voorzieningen", |
|||
"oc": "Equipament", |
|||
"pl": "Pożyteczne miejsca", |
|||
"pt": "Equipamentos", |
|||
"pt-br": "Equipamentos", |
|||
"ro": "Facilități", |
|||
"ru": "Полезные места", |
|||
"sr": "Додаци", |
|||
"tr": "Tesisler", |
|||
"uk": "Amenities" |
|||
} |
|||
} |
@ -1,17 +1,26 @@ |
|||
{ |
|||
"name": { |
|||
"ast": "Rutes", |
|||
"ca": "Rutes", |
|||
"cs": "Trasy cest", |
|||
"de": "(ausgeschilderte) Routen", |
|||
"en": "Routes", |
|||
"fr": "Routes", |
|||
"hu": "Útvonalak", |
|||
"es": "Rutas", |
|||
"fr": "Itinéraires", |
|||
"gl": "Rotas", |
|||
"hu": "(Jelzett) útvonalak", |
|||
"it": "Itinerari segnalati", |
|||
"ja": "ルート", |
|||
"nb": "Ruter", |
|||
"nl": "Alternatieve routes", |
|||
"oc": "Varianta d'itinerari", |
|||
"pl": "Trasy", |
|||
"pt": "Rotas", |
|||
"pt-br": "Rotas", |
|||
"ro": "Rute", |
|||
"ru": "Маршруты", |
|||
"sr": "Трасе", |
|||
"tr": "Rotalar", |
|||
"uk": "Маршрути" |
|||
} |
|||
} |
@ -1,50 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"ast": "Infraestructures", |
|||
"cs": "Občasnká vybavenost", |
|||
"de": "Einrichtungen", |
|||
"en": "Amenities", |
|||
"fr": "Équipements auto", |
|||
"hu": "Létesítmények", |
|||
"it": "Infrastrutture", |
|||
"ja": "生活環境", |
|||
"nl": "Voorzieningen", |
|||
"pt-br": "Equipamentos", |
|||
"ru": "Обслуживание транспорта", |
|||
"uk": "Amenities" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"nwr[amenity~\"^(car_rental|car_sharing|fuel)$\"];", |
|||
"nwr[amenity~\"^(charging_station)$\"][motorcar][motorcar!=\"no\"];", |
|||
"nwr[amenity~\"^(charging_station)$\"][motorcycle][motorcycle!=\"no\"];", |
|||
")" |
|||
], |
|||
"16": [ |
|||
"(", |
|||
"nwr[amenity~\"^(car_rental|car_sharing|car_wash|fuel|motorcycle_parking|parking)$\"];", |
|||
"nwr[amenity~\"^(charging_station)$\"][motorcar][motorcar!=\"no\"];", |
|||
"nwr[amenity~\"^(charging_station)$\"][motorcycle][motorcycle!=\"no\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set key = 'amenity' %}", |
|||
"{% set value = tags.amenity %}" |
|||
], |
|||
"description": "{{ tagTrans(key, value) }}", |
|||
"markerSign": "{{ const[value] }}" |
|||
}, |
|||
"const": { |
|||
"car_rental": "R", |
|||
"car_sharing": "S", |
|||
"car_wash": "🚿", |
|||
"charging_station": "🔌", |
|||
"fuel": "⛽", |
|||
"parking": "🅿", |
|||
"motorcycle_parking": "🅿" |
|||
} |
|||
} |
@ -0,0 +1,53 @@ |
|||
type: overpass |
|||
name: |
|||
ast: Infraestructures |
|||
ca: Serveis |
|||
cs: Občasnká vybavenost |
|||
de: Einrichtungen |
|||
en: Amenities |
|||
es: Instalaciones |
|||
fr: Équipements auto |
|||
gl: Instalacións |
|||
hu: Létesítmények |
|||
it: Infrastrutture |
|||
ja: 生活環境 |
|||
nb: Fasiliteter |
|||
nl: Voorzieningen |
|||
oc: Equipaments auto |
|||
pl: Użyteczne w transporcie drogowym |
|||
pt: Equipamentos |
|||
pt-br: Equipamentos |
|||
ro: Dotări |
|||
ru: Обслуживание транспорта |
|||
sr: Додаци |
|||
tr: Tesisler |
|||
uk: Amenities |
|||
query: |
|||
13: |- |
|||
( |
|||
nwr[amenity~"^(.*;|)(car_rental|car_sharing|fuel)(;.*|)$"]; |
|||
nwr[amenity~"^(.*;|)(charging_station)(;.*|)$"][motorcar][motorcar!="no"]; |
|||
nwr[amenity~"^(.*;|)(charging_station)(;.*|)$"][motorcycle][motorcycle!="no"]; |
|||
) |
|||
16: |- |
|||
( |
|||
nwr[amenity~"^(.*;|)(car_rental|car_sharing|car_wash|fuel|motorcycle_parking|parking)(;.*|)$"]; |
|||
nwr[amenity~"^(.*;|)(charging_station)(;.*|)$"][motorcar][motorcar!="no"]; |
|||
nwr[amenity~"^(.*;|)(charging_station)(;.*|)$"][motorcycle][motorcycle!="no"]; |
|||
) |
|||
feature: |
|||
pre: |- |
|||
{% set key = 'amenity' %} |
|||
{% set value = tags.amenity %} |
|||
description: |- |
|||
{{ tagTransList(key, value) }} |
|||
markerSign: |- |
|||
{{ const[value] }} |
|||
const: |
|||
car_rental: R |
|||
car_sharing: S |
|||
car_wash: 🚿 |
|||
charging_station: 🔌 |
|||
fuel: ⛽ |
|||
parking: 🅿 |
|||
motorcycle_parking: 🅿 |
@ -1,18 +1,25 @@ |
|||
{ |
|||
"name": { |
|||
"ast": "Acondicionamientu urbanu", |
|||
"ca": "Mobiliari Urbà", |
|||
"cs": "Pouliční přislušenství", |
|||
"de": "Straßenausstattung", |
|||
"en": "Street Furniture", |
|||
"es": "Mobiliario Urbano", |
|||
"fr": "Fournitures automobiles", |
|||
"gl": "Mobiliario urbano", |
|||
"hu": "Jelzőtáblák", |
|||
"it": "Dotazioni stradali", |
|||
"ja": "街路設置公共物", |
|||
"nb": "Gatemøbler", |
|||
"nl": "Straatmeubilair", |
|||
"oc": "Fornituras automobilas", |
|||
"pl": "Elementy drogowe", |
|||
"pt": "Mobiliário urbano", |
|||
"pt-br": "Mobiliário urbano", |
|||
"ro": "Mobilier Stradal", |
|||
"ru": "Элементы дороги", |
|||
"tr": "Sokak Mobilyaları", |
|||
"uk": "Street Furniture" |
|||
} |
|||
} |
@ -1,203 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Höchstgeschwindigkeiten", |
|||
"en": "Maxspeed", |
|||
"fr": "Limites de vitesse", |
|||
"hu": "Sebességkorlátozás", |
|||
"pt": "Velocidade máxima", |
|||
"pt-br": "Velocidade máxima" |
|||
}, |
|||
"query": { |
|||
"11": "way[highway~\"^(motorway|trunk)$\"];", |
|||
"13": "way[highway~\"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|tertiary)$\"];", |
|||
"15": "way[highway~\"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified)$\"];", |
|||
"17": "way[highway~\"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified|service|living_street|pedestrian|track|road)$\"];" |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set maxspeedKmh = null %}", |
|||
"{% set maxspeed = null %}", |
|||
"{% set unit = null %}", |
|||
"", |
|||
"{% if tags.maxspeed is defined %}", |
|||
" {% if const.colorOther[tags.maxspeed] %}", |
|||
" {% set maxspeed = tags.maxspeed %}", |
|||
" {% elseif tags.maxspeed|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedKmh = tags.maxspeed %}", |
|||
" {% set maxspeed = tags.maxspeed %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif tags.maxspeed|matches( \"(^[0-9]+) mph$\") %}", |
|||
" {% set m = tags.maxspeed|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeed = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% else %}", |
|||
" {% set maxspeed = 'other' %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'maxspeed:forward') is defined %}", |
|||
" {% set x = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% if const.colorOther[x] %}", |
|||
" {% set maxspeedF = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% elseif attribute(tags, 'maxspeed:forward')|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedFKmh = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% set maxspeedF = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif attribute(tags, 'maxspeed:forward')|matches(\"^[0-9]+ mph$\") %}", |
|||
" {% set m = attribute(tags, 'maxspeed:forward')|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedFKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeedF = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% else %}", |
|||
" {% set maxspeedF = 'other' %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'maxspeed:backward') is defined %}", |
|||
" {% set x = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% if const.colorOther[x] %}", |
|||
" {% set maxspeedB = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% elseif attribute(tags, 'maxspeed:backward')|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedBKmh = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% set maxspeedB = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif attribute(tags, 'maxspeed:backward')|matches(\"^[0-9]+ mph$\") %}", |
|||
" {% set m = attribute(tags, 'maxspeed:backward')|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedBKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeedB = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% else %}", |
|||
" {% set maxspeedB = 'other' %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if const.colorOther[maxspeed] %}", |
|||
"{% set color = const.colorOther[maxspeed] %}", |
|||
"{% elseif not maxspeedKmh %}", |
|||
"{% set color = \"#404040\" %}", |
|||
"{% else %}", |
|||
"{% set color = colorInterpolate(const.colorMap, (maxspeedKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if const.colorOther[maxspeedF] %}", |
|||
"{% set colorF = const.colorOther[maxspeedF] %}", |
|||
"{% elseif maxspeedFKmh %}", |
|||
"{% set colorF = colorInterpolate(const.colorMap, (maxspeedFKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if const.colorOther[maxspeedB] %}", |
|||
"{% set colorB = const.colorOther[maxspeedB] %}", |
|||
"{% elseif maxspeedBKmh %}", |
|||
"{% set colorB = colorInterpolate(const.colorMap, (maxspeedBKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": "{{ tagTransList('highway', tags.highway) }}", |
|||
"details": [ |
|||
"{% if maxspeedF or maxspeedB %}", |
|||
"<span style='color: {{ colorB }}'>{{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : const.colorOther[maxspeedB] ? tagTrans('maxspeed', maxspeedB) : maxspeedB|default(trans('unknown')) }}</span> / <span style='color: {{ colorF }}'>{{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : const.colorOther[maxspeedF] ? tagTrans('maxspeed', maxspeedF) : maxspeedF|default(trans('unknown')) }}</span> {{ unit }}", |
|||
"{% elseif maxspeed %}", |
|||
"<span style='color: {{ color }}'>{{ maxspeed == 'other' ? tags.maxspeed : const.colorOther[maxspeed] ? tagTrans('maxspeed', maxspeed) : maxspeed }} {{ unit }}</span>", |
|||
"{% elseif tags.maxspeed %}", |
|||
"{{ tags.maxspeed }}", |
|||
"{% else %}", |
|||
"{{ trans('unknown') }}", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": "", |
|||
"listMarkerSymbol": "line", |
|||
"styles": "{% if maxspeedB or maxspeedF %}left,right,default{% else %}default{% endif %}", |
|||
"style": { |
|||
"width": "{% if maxspeedB or maxspeedF %}0{% else %}4{% endif %}", |
|||
"color": "{{ color }}", |
|||
"text": [ |
|||
"{% if maxspeedB or maxspeedF %}", |
|||
" {% if maxspeedB %}🡸 {{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : maxspeedB }} {% endif %}|{% if maxspeedF %} {{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : maxspeedF }} 🡺{% endif %} ", |
|||
"{% else %}", |
|||
" {{ maxspeed == 'other' ? tags.maxspeed : maxspeed }} ", |
|||
"{% endif %}" |
|||
], |
|||
"textRepeat": "1", |
|||
"textOffset": "4", |
|||
"textFontWeight": "bold" |
|||
}, |
|||
"style:left": { |
|||
"width": "2", |
|||
"color": "{{ colorB|default('#404040') }}", |
|||
"offset": "-1" |
|||
}, |
|||
"style:right": { |
|||
"width": "2", |
|||
"color": "{{ colorF|default('#404040') }}", |
|||
"offset": "1" |
|||
} |
|||
}, |
|||
"const": { |
|||
"colorMap": [ |
|||
"#00af00", |
|||
"#ff7f00", |
|||
"#ff0000", |
|||
"#af00af" |
|||
], |
|||
"colorOther": { |
|||
"none": "#ff00ff", |
|||
"walk": "#00afff", |
|||
"other": "#0000ff" |
|||
}, |
|||
"highestColorSpeed": 150, |
|||
"offsetColorSpeed": 10 |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({}))|raw }}</td>", |
|||
" <td colspan>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}</td>", |
|||
" <td colspan>{{ tagTrans('maxspeed', 'walk') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>", |
|||
" <td>{{ tagTrans('maxspeed', 'none') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"other\" }))|raw }}</td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"<div style='display: inline-block; width: 49%;'>", |
|||
"<table>", |
|||
"{% for i in range(10, 140, 20) %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}</td>", |
|||
" <td>{{ i }}km/h</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": 150 }))|raw }}</td>", |
|||
" <td>≥150km/h</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"</div>", |
|||
"<div style='display: inline-block; width: 49%;'>", |
|||
"<table>", |
|||
"{% for i in range(10, 60, 10) %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (i * 1.60934)|round }))|raw }}</td>", |
|||
" <td>{{ i }}mph</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (75 * 1.60934)|round }))|raw }}</td>", |
|||
" <td>75mph</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (95 * 1.60934)|round }))|raw }}</td>", |
|||
" <td>≥95mph</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"</div>" |
|||
] |
|||
} |
@ -0,0 +1,261 @@ |
|||
type: overpass |
|||
name: |
|||
ca: Velocitat màxima |
|||
cs: Maximální rychlost |
|||
de: Höchstgeschwindigkeiten |
|||
en: Maxspeed |
|||
es: Velocidad máxima |
|||
fr: Limites de vitesse |
|||
gl: Velocidade máxima |
|||
hu: Sebességkorlátozás |
|||
it: Velocità massima |
|||
ja: 最高速度 |
|||
nb: Fartsgrense |
|||
nl: Snelheidslimiet |
|||
oc: Limits de velocitat |
|||
pl: Prędkość maksymalna |
|||
pt: Velocidade máxima |
|||
pt-br: Veloc. máxima |
|||
ro: Viteza maximă |
|||
ru: Максимальная скорость |
|||
sr: Максимална брзина |
|||
tr: En yüksek hız |
|||
query: |
|||
11: way[highway~"^(motorway|trunk)$"]; |
|||
13: way[highway~"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|tertiary)$"]; |
|||
15: way[highway~"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified)$"]; |
|||
16: |- |
|||
( |
|||
way[highway~"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified)$"]; |
|||
node[traffic_sign~"^(|.*;)maxspeed(;.*|)$"]; |
|||
) |
|||
17: |- |
|||
( |
|||
way[highway~"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified|service|living_street|pedestrian|track|road)$"]; |
|||
node[traffic_sign~"^(|.*;)maxspeed(;.*|)$"]; |
|||
) |
|||
feature: |
|||
pre: |- |
|||
{% set maxspeedKmh = null %} |
|||
{% set maxspeed = null %} |
|||
{% set unit = null %} |
|||
|
|||
{% if tags.maxspeed is defined %} |
|||
{% if const.colorOther[tags.maxspeed] %} |
|||
{% set maxspeed = tags.maxspeed %} |
|||
{% elseif tags.maxspeed|matches("^[0-9]+$") %} |
|||
{% set maxspeedKmh = tags.maxspeed %} |
|||
{% set maxspeed = tags.maxspeed %} |
|||
{% set unit = "km/h" %} |
|||
{% elseif tags.maxspeed|matches( "(^[0-9]+) mph$") %} |
|||
{% set m = tags.maxspeed|matches("(^[0-9]+) mph$") %} |
|||
{% set maxspeedKmh = m[1] * 1.60934 %} |
|||
{% set maxspeed = m[1] %} |
|||
{% set unit = "mph" %} |
|||
{% else %} |
|||
{% set maxspeed = 'other' %} |
|||
{% endif %} |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'maxspeed:forward') is defined %} |
|||
{% set x = attribute(tags, 'maxspeed:forward') %} |
|||
{% if const.colorOther[x] %} |
|||
{% set maxspeedF = attribute(tags, 'maxspeed:forward') %} |
|||
{% elseif attribute(tags, 'maxspeed:forward')|matches("^[0-9]+$") %} |
|||
{% set maxspeedFKmh = attribute(tags, 'maxspeed:forward') %} |
|||
{% set maxspeedF = attribute(tags, 'maxspeed:forward') %} |
|||
{% set unit = "km/h" %} |
|||
{% elseif attribute(tags, 'maxspeed:forward')|matches("^[0-9]+ mph$") %} |
|||
{% set m = attribute(tags, 'maxspeed:forward')|matches("(^[0-9]+) mph$") %} |
|||
{% set maxspeedFKmh = m[1] * 1.60934 %} |
|||
{% set maxspeedF = m[1] %} |
|||
{% set unit = "mph" %} |
|||
{% else %} |
|||
{% set maxspeedF = 'other' %} |
|||
{% endif %} |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'maxspeed:backward') is defined %} |
|||
{% set x = attribute(tags, 'maxspeed:backward') %} |
|||
{% if const.colorOther[x] %} |
|||
{% set maxspeedB = attribute(tags, 'maxspeed:backward') %} |
|||
{% elseif attribute(tags, 'maxspeed:backward')|matches("^[0-9]+$") %} |
|||
{% set maxspeedBKmh = attribute(tags, 'maxspeed:backward') %} |
|||
{% set maxspeedB = attribute(tags, 'maxspeed:backward') %} |
|||
{% set unit = "km/h" %} |
|||
{% elseif attribute(tags, 'maxspeed:backward')|matches("^[0-9]+ mph$") %} |
|||
{% set m = attribute(tags, 'maxspeed:backward')|matches("(^[0-9]+) mph$") %} |
|||
{% set maxspeedBKmh = m[1] * 1.60934 %} |
|||
{% set maxspeedB = m[1] %} |
|||
{% set unit = "mph" %} |
|||
{% else %} |
|||
{% set maxspeedB = 'other' %} |
|||
{% endif %} |
|||
{% endif %} |
|||
|
|||
{% if const.colorOther[maxspeed] %} |
|||
{% set color = const.colorOther[maxspeed] %} |
|||
{% elseif not maxspeedKmh %} |
|||
{% set color = "#404040" %} |
|||
{% else %} |
|||
{% set color = colorInterpolate(const.colorMap, (maxspeedKmh - const.offsetColorSpeed) / const.highestColorSpeed) %} |
|||
{% endif %} |
|||
|
|||
{% if const.colorOther[maxspeedF] %} |
|||
{% set colorF = const.colorOther[maxspeedF] %} |
|||
{% elseif maxspeedFKmh %} |
|||
{% set colorF = colorInterpolate(const.colorMap, (maxspeedFKmh - const.offsetColorSpeed) / const.highestColorSpeed) %} |
|||
{% endif %} |
|||
|
|||
{% if const.colorOther[maxspeedB] %} |
|||
{% set colorB = const.colorOther[maxspeedB] %} |
|||
{% elseif maxspeedBKmh %} |
|||
{% set colorB = colorInterpolate(const.colorMap, (maxspeedBKmh - const.offsetColorSpeed) / const.highestColorSpeed) %} |
|||
{% endif %} |
|||
description: |- |
|||
{% if tags.highway %} |
|||
{{ tagTransList('highway', tags.highway) }} |
|||
{% else %} |
|||
{{ keyTrans('traffic_sign') }}: {{ tagTransList('traffic_sign', tags.traffic_sign) }} |
|||
{% endif %} |
|||
details: |- |
|||
{% if maxspeedF or maxspeedB %} |
|||
<span style='color: {{ colorB }}'>{{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : const.colorOther[maxspeedB] ? tagTrans('maxspeed', maxspeedB) : maxspeedB|default(trans('unknown')) }}</span> / <span style='color: {{ colorF }}'>{{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : const.colorOther[maxspeedF] ? tagTrans('maxspeed', maxspeedF) : maxspeedF|default(trans('unknown')) }}</span> {{ unit }} |
|||
{% elseif maxspeed %} |
|||
<span style='color: {{ color }}'>{{ maxspeed == 'other' ? tags.maxspeed : const.colorOther[maxspeed] ? tagTrans('maxspeed', maxspeed) : maxspeed }} {{ unit }}</span> |
|||
{% elseif tags.maxspeed %} |
|||
{{ tags.maxspeed }} |
|||
{% else %} |
|||
{{ trans('unknown') }} |
|||
{% endif %} |
|||
markerSymbol: |- |
|||
{% if not tags.highway %} |
|||
{{ markerCircle({ color: 'red', width: 2, fill: true, fillColor: '#ffffff', fillOpacity: 1, radius: 9 }) }} |
|||
{% endif %} |
|||
listMarkerSymbol: |- |
|||
{% if tags.highway %} |
|||
line |
|||
{% else %} |
|||
{{ markerCircle({ color: 'red', width: 2, fill: true, fillColor: '#ffffff', fillOpacity: 1, radius: 9 }) }} |
|||
{% endif %} |
|||
markerSign: | |
|||
{% if not tags.highway %} |
|||
<span style='font-size: 8pt; |
|||
|
|||
{% if tags.direction != null %} |
|||
transform: rotate({{ tags.direction|parseDirection|default(0) + 180 }}deg); |
|||
{% endif %} |
|||
|
|||
'>{{ tags.maxspeed|default('?') }}</span> |
|||
{% endif %} |
|||
listMarkerSign: | |
|||
{% if not tags.highway %} |
|||
<span style='font-size: 8pt;'>{{ tags.maxspeed|default('?') }}</span> |
|||
{% endif %} |
|||
styles: |- |
|||
{% if not tags.highway %} |
|||
traffic_sign |
|||
{% elseif maxspeedB or maxspeedF %} |
|||
left,right,default |
|||
{% else %} |
|||
default |
|||
{% endif %} |
|||
style: |
|||
width: '{% if maxspeedB or maxspeedF %}0{% else %}4{% endif %}' |
|||
color: '{{ color }}' |
|||
text: |- |
|||
{% if maxspeedB or maxspeedF %} |
|||
{% if maxspeedB %}🡸 {{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : maxspeedB }} {% endif %}|{% if maxspeedF %} {{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : maxspeedF }} 🡺{% endif %} |
|||
{% else %} |
|||
{{ maxspeed == 'other' ? tags.maxspeed : maxspeed }} |
|||
{% endif %} |
|||
textRepeat: '1' |
|||
textOffset: '4' |
|||
textFontWeight: bold |
|||
style:left: |
|||
width: '2' |
|||
color: |- |
|||
{{ colorB|default('#404040') }} |
|||
offset: '-1' |
|||
style:right: |
|||
width: '2' |
|||
color: | |
|||
{{ colorF|default('#404040') }} |
|||
offset: '1' |
|||
style:traffic_sign: |
|||
width: 0 |
|||
radius: 0 |
|||
|
|||
const: |
|||
colorMap: |
|||
- '#00af00' |
|||
- '#ff7f00' |
|||
- '#ff0000' |
|||
- '#af00af' |
|||
colorOther: |
|||
none: '#ff00ff' |
|||
walk: '#00afff' |
|||
other: '#0000ff' |
|||
highestColorSpeed: 150 |
|||
offsetColorSpeed: 10 |
|||
info: |- |
|||
<table> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({}))|raw }}</td> |
|||
<td colspan>{{ trans('unknown') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": "walk" }))|raw }}</td> |
|||
<td colspan>{{ tagTrans('maxspeed', 'walk') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": "none" }))|raw }}</td> |
|||
<td>{{ tagTrans('maxspeed', 'none') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": "other" }))|raw }}</td> |
|||
<td>{{ trans('other') }}</td> |
|||
</tr> |
|||
</table> |
|||
<div style='display: inline-block; width: 49%;'> |
|||
<table> |
|||
{% for i in range(10, 140, 20) %} |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": i }))|raw }}</td> |
|||
<td>{{ i }}km/h</td> |
|||
</tr> |
|||
{% endfor %} |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": 150 }))|raw }}</td> |
|||
<td>≥150km/h</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
<div style='display: inline-block; width: 49%;'> |
|||
<table> |
|||
{% for i in range(10, 60, 10) %} |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": (i * 1.60934)|round }))|raw }}</td> |
|||
<td>{{ i }}mph</td> |
|||
</tr> |
|||
{% endfor %} |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": (75 * 1.60934)|round }))|raw }}</td> |
|||
<td>75mph</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "maxspeed": (95 * 1.60934)|round }))|raw }}</td> |
|||
<td>≥95mph</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
|
|||
filter: |
|||
type: |
|||
name: | |
|||
{{ trans('filter:type') }} |
|||
type: select |
|||
show_default: true |
|||
values: |- |
|||
<option value='road' query='way[highway]'>{{ keyTrans('highway') }}</option> |
|||
<option value='traffic_sign' query='node[traffic_sign]'>{{ keyTrans('traffic_sign') }}</option> |
@ -1,66 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Car routes", |
|||
"fr": "Itinéraires auto", |
|||
"hu": "Főútvonalak", |
|||
"pt-br": "Rotas rodoviárias" |
|||
}, |
|||
"query": { |
|||
"10": "relation[type=route][route=road]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"pre": "{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}", |
|||
"description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}", |
|||
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}", |
|||
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", |
|||
"markerSymbol": "", |
|||
"styles": "" |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set refs = [] %}", |
|||
"{% set color = '#d41d8c' %}", |
|||
"{% if tags.ref %}", |
|||
" {% for ref in tags.ref|split(';') %}", |
|||
" {% set refs = refs|merge([ ref|trim ]) %}", |
|||
" {% endfor %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.network %}", |
|||
" {% set color = '#' ~ master.tags.network|md5|slice(0, 6) %}", |
|||
" {% endif %}", |
|||
" {% if master.tags.ref %}", |
|||
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|||
" {% endif %}", |
|||
"{% endfor %}", |
|||
"", |
|||
"{% set refs = refs|unique|natsort({ insensitive: true }) %}" |
|||
], |
|||
"body": [ |
|||
"<h4>Routes</h4>", |
|||
"<ul>", |
|||
"{% for master in masters %}", |
|||
" {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}", |
|||
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>", |
|||
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>", |
|||
" <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>", |
|||
" <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>", |
|||
" </li>", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"listExclude": "1", |
|||
"style": { |
|||
"color": "{{ color }}", |
|||
"width": 4, |
|||
"opacity": 1, |
|||
"text": "{{ refs|join(' · ') }} ", |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
type: overpass |
|||
name: |
|||
ca: Rutes en cotxe |
|||
cs: Automobilové cesty |
|||
de: Autorouten |
|||
en: Car routes |
|||
es: Rutas de coche |
|||
fr: Itinéraires auto |
|||
gl: Rotas automobilísticas |
|||
hu: Főútvonalak |
|||
it: Tratte automobilistiche |
|||
ja: 車のルート |
|||
nb: Bilruter |
|||
nl: Autoroutes |
|||
oc: Itineraris auto |
|||
pl: Trasy samochodowe |
|||
pt: Rotas rodoviárias |
|||
pt-br: Rotas rodoviárias |
|||
ro: Rute auto |
|||
ru: Автомобильные маршруты |
|||
sr: Трасе за возила |
|||
tr: Araba Rotaları |
|||
query: |
|||
10: relation[type=route][route=road] |
|||
members: true |
|||
feature: |
|||
pre: |- |
|||
{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %} |
|||
description: |- |
|||
{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %} |
|||
title: |- |
|||
{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %} |
|||
listMarkerSymbol: |- |
|||
{{ markerLine({ 'width': 4, 'color': color })|raw }} |
|||
markerSymbol: '' |
|||
styles: '' |
|||
memberFeature: |
|||
pre: |- |
|||
{% set refs = [] %} |
|||
{% set color = '#d41d8c' %} |
|||
{% if tags.ref %} |
|||
{% for ref in tags.ref|split(';') %} |
|||
{% set refs = refs|merge([ ref|trim ]) %} |
|||
{% endfor %} |
|||
{% endif %} |
|||
|
|||
{% for master in masters %} |
|||
{% if master.tags.network %} |
|||
{% set color = '#' ~ master.tags.network|md5|slice(0, 6) %} |
|||
{% endif %} |
|||
{% if master.tags.ref %} |
|||
{% set refs = refs|merge([ master.tags.ref ]) %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
|
|||
{% set refs = refs|unique|natsort({ insensitive: true }) %} |
|||
body: |- |
|||
<h4>Routes</h4> |
|||
<ul> |
|||
{% for master in masters %} |
|||
{% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %} |
|||
<li data-object="{{ master.id }}" style='list-style: none;'> |
|||
<span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span> |
|||
<span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span> |
|||
<span class='description'>{{ tagTrans('network', master.tags.network) }}</span> |
|||
</li> |
|||
{% endfor %} |
|||
</ul> |
|||
listExclude: 1 |
|||
style: |
|||
color: '{{ color }}' |
|||
width: 4 |
|||
opacity: 1 |
|||
text: '{{ refs|join(" · ") }} ' |
|||
textRepeat: 1 |
|||
textOffset: 12 |
|||
textFontWeight: bold |
@ -1,124 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Einrichtungen für Kinder", |
|||
"en": "Children amenities", |
|||
"fr": "Équipements pour enfants", |
|||
"hu": "Gyermekek", |
|||
"pt-br": "Equipamentos infantis" |
|||
}, |
|||
"query": { |
|||
"15": [ |
|||
"(", |
|||
"node[leisure~'^(playground|summer_camp|indoor_play)$'];", |
|||
"way[leisure~'^(playground|summer_camp|indoor_play)$'];", |
|||
"relation[leisure~'^(playground|summer_camp|indoor_play)$'];", |
|||
"node[shop~'^(baby_goods|toys)$'];", |
|||
"way[shop~'^(baby_goods|toys)$'];", |
|||
"relation[shop~'^(baby_goods|toys)$'];", |
|||
"nwr[changing_table][changing_table!=no];", |
|||
"nwr[diaper][diaper!=no];", |
|||
"node[kids_area];", |
|||
"way[kids_area];", |
|||
"relation[kids_area];", |
|||
");" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": [ |
|||
"{% if tags.leisure=='playground' %}", |
|||
"{{ tagTrans('leisure', 'playground') }}", |
|||
"{% elseif tags.leisure=='summer_camp'%}", |
|||
"{{ tagTrans('leisure', 'summer_camp') }}", |
|||
"{% elseif tags.leisure=='indoor_play' %}", |
|||
"{{ tagTrans('leisure', 'indoor_play') }}", |
|||
"{% elseif tags.kids_area %}", |
|||
"{{ keyTrans('kids_area') }}", |
|||
"{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}", |
|||
"{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}", |
|||
"{% elseif tags.amenity == 'toilets' and ( (tags.changing_table and tags.changing_table != 'no') or (tags.diaper and tags.diaper != 'no') ) %}", |
|||
"{{ tagTrans('amenity', 'toilets changing_table=yes') }}", |
|||
"{% elseif (tags.changing_table and tags.changing_table != 'no') or (tags.diaper and tags.diaper != 'no') %}", |
|||
"{{ keyTrans('changing_table') }}", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": [ |
|||
"{% if tags.leisure=='playground' %}", |
|||
"⛹", |
|||
"{% elseif tags.leisure=='summer_camp'%}", |
|||
"🏕", |
|||
"{% elseif tags.leisure=='indoor_play' or tags.kids_area %}", |
|||
"🏠", |
|||
"{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}", |
|||
"<i class=\"fa fa-shopping-cart\"></i>", |
|||
"{% elseif tags.amenity=='toilets' and tags.changing_table and tags.changing_table!='no' %}", |
|||
"🚽🚼", |
|||
"{% endif %}" |
|||
] |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>⛹</div></td>", |
|||
" <td>{{ tagTrans('leisure', 'playground') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>🏠</div></td>", |
|||
" <td>{{ tagTrans('leisure', 'indoor_play') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>🏕</div></td>", |
|||
" <td>{{ tagTrans('leisure', 'summer_camp') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>🏠</div></td>", |
|||
" <td>{{ keyTrans('kids_area') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'><i class=\"fa fa-shopping-cart\"></i></div></td>", |
|||
" <td>{{ keyTrans('shop') }}: {{ tagTransList('shop', 'baby_goods;toys') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>🚽🚼</div></td>", |
|||
" <td>{{ tagTrans('amenity', 'toilets changing_table=yes') }}</td>", |
|||
" </tr>", |
|||
"</table>" |
|||
], |
|||
"filter": { |
|||
"type": { |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"show_default": "true", |
|||
"values": { |
|||
"playground": { |
|||
"name": "{{ tagTrans('leisure', 'playground') }}", |
|||
"query": "nwr[leisure=playground]" |
|||
}, |
|||
"indoor_play": { |
|||
"name": "{{ tagTrans('leisure', 'indoor_play') }}", |
|||
"query": "nwr[leisure=indoor_play]" |
|||
}, |
|||
"summer_camp": { |
|||
"name": "{{ tagTrans('leisure', 'summer_camp') }}", |
|||
"query": "nwr[leisure=summer_camp]" |
|||
}, |
|||
"kids_area": { |
|||
"name": "{{ keyTrans('kids_area') }}", |
|||
"query": "nwr[kids_area]" |
|||
}, |
|||
"shop_baby_goods": { |
|||
"name": "{{ tagTrans('shop', 'baby_goods') }}", |
|||
"query": "nwr[shop=baby_goods]" |
|||
}, |
|||
"shop_toys": { |
|||
"name": "{{ tagTrans('shop', 'toys') }}", |
|||
"query": "nwr[shop=toys]" |
|||
}, |
|||
"toilets": { |
|||
"name": "{{ tagTrans('amenity', 'toilets changing_table=yes') }}", |
|||
"query": "nwr[amenity=toilets][changing_table][changing_table!=no]" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,114 @@ |
|||
type: overpass |
|||
name: |
|||
ca: Serveis per a infants |
|||
cs: Vybavení pro děti |
|||
de: Einrichtungen für Kinder |
|||
en: Children amenities |
|||
es: Instalaciones para niños |
|||
fr: Équipements pour enfants |
|||
gl: Instalacións infantís |
|||
hu: Gyermekek |
|||
it: Luoghi per bambini |
|||
ja: 子ども用施設 |
|||
nb: Barnefasiliteter |
|||
nl: Voorzieningen voor kinderen |
|||
oc: Luòcs per leis enfants |
|||
pl: Użyteczne dzieciom |
|||
pt: Equipamentos infantis |
|||
pt-br: Equipamentos infantis |
|||
ro: Facilități copii |
|||
sr: Додаци за децу |
|||
tr: Çocuk Malzemeleri |
|||
query: |
|||
15: |- |
|||
( |
|||
nwr[leisure~'^(playground|summer_camp|indoor_play)$']; |
|||
nwr[shop~'^(baby_goods|toys)$']; |
|||
nwr[changing_table][changing_table!=no]; |
|||
nwr[diaper][diaper!=no]; |
|||
nwr[kids_area]; |
|||
); |
|||
feature: |
|||
description: |- |
|||
{% if tags.leisure=='playground' %} |
|||
{{ tagTrans('leisure', 'playground') }} |
|||
{% elseif tags.leisure=='summer_camp'%} |
|||
{{ tagTrans('leisure', 'summer_camp') }} |
|||
{% elseif tags.leisure=='indoor_play' %} |
|||
{{ tagTrans('leisure', 'indoor_play') }} |
|||
{% elseif tags.kids_area %} |
|||
{{ keyTrans('kids_area') }} |
|||
{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %} |
|||
{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }} |
|||
{% elseif tags.amenity == 'toilets' and ( (tags.changing_table and tags.changing_table != 'no') or (tags.diaper and tags.diaper != 'no') ) %} |
|||
{{ tagTrans('amenity', 'toilets changing_table=yes') }} |
|||
{% elseif (tags.changing_table and tags.changing_table != 'no') or (tags.diaper and tags.diaper != 'no') %} |
|||
{{ keyTrans('changing_table') }} |
|||
{% endif %} |
|||
markerSign: |- |
|||
{% if tags.leisure=='playground' %} |
|||
⛹ |
|||
{% elseif tags.leisure=='summer_camp'%} |
|||
🏕 |
|||
{% elseif tags.leisure=='indoor_play' or tags.kids_area %} |
|||
🏠 |
|||
{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %} |
|||
<i class="fa fa-shopping-cart"></i> |
|||
{% elseif tags.amenity=='toilets' and tags.changing_table and tags.changing_table!='no' %} |
|||
🚽🚼 |
|||
{% endif %} |
|||
info: |- |
|||
<table> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'>⛹</div></td> |
|||
<td>{{ tagTrans('leisure', 'playground') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'>🏠</div></td> |
|||
<td>{{ tagTrans('leisure', 'indoor_play') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'>🏕</div></td> |
|||
<td>{{ tagTrans('leisure', 'summer_camp') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'>🏠</div></td> |
|||
<td>{{ keyTrans('kids_area') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'><i class="fa fa-shopping-cart"></i></div></td> |
|||
<td>{{ keyTrans('shop') }}: {{ tagTransList('shop', 'baby_goods;toys') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerCircle({})|raw }}<div class='sign'>🚽🚼</div></td> |
|||
<td>{{ tagTrans('amenity', 'toilets changing_table=yes') }}</td> |
|||
</tr> |
|||
</table> |
|||
filter: |
|||
type: |
|||
name: |- |
|||
{{ trans('filter:type') }} |
|||
type: select |
|||
show_default: true |
|||
values: |
|||
playground: |
|||
name: '{{ tagTrans("leisure", "playground") }}' |
|||
query: nwr[leisure=playground] |
|||
indoor_play: |
|||
name: '{{ tagTrans("leisure", "indoor_play") }}' |
|||
query: nwr[leisure=indoor_play] |
|||
summer_camp: |
|||
name: '{{ tagTrans("leisure", "summer_camp") }}' |
|||
query: nwr[leisure=summer_camp] |
|||
kids_area: |
|||
name: '{{ keyTrans("kids_area") }}' |
|||
query: nwr[kids_area] |
|||
shop_baby_goods: |
|||
name: '{{ tagTrans("shop", "baby_goods") }}' |
|||
query: nwr[shop=baby_goods] |
|||
shop_toys: |
|||
name: '{{ tagTrans("shop", "toys") }}' |
|||
query: nwr[shop=toys] |
|||
toilets: |
|||
name: '{{ tagTrans("amenity", "toilets changing_table=yes") }}' |
|||
query: nwr[amenity=toilets][changing_table][changing_table!=no] |
@ -1,154 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"ast": "Comunicaciones", |
|||
"ca": "Comunicacions", |
|||
"cs": "Komunikace", |
|||
"de": "Kommunikation", |
|||
"el": "Επικοινωνίες", |
|||
"en": "Communication", |
|||
"et": "Kommunikatsioon", |
|||
"fr": "Communication", |
|||
"hu": "Kommunikácó", |
|||
"it": "Communicazioni", |
|||
"ja": "交流", |
|||
"nl": "Communicatie", |
|||
"pt": "Comunicação", |
|||
"pt-br": "Comunicação", |
|||
"ro": "Comunicatii", |
|||
"ru": "Услуги связи", |
|||
"uk": "Телекомунікації" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"nwr[amenity~'^(post_office|internet_cafe)$'];", |
|||
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", |
|||
");" |
|||
], |
|||
"15": [ |
|||
"(", |
|||
"nwr[amenity~'^(post_office|internet_cafe|post_box|parcel_locker|telephone)$'];", |
|||
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", |
|||
"nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];", |
|||
"nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];", |
|||
");" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.vending %}", |
|||
" {% set key = 'amenity' %}", |
|||
" {% set value = 'parcel_locker' %}", |
|||
" {% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}", |
|||
"{% elseif tags.amenity %}", |
|||
" {% set key = 'amenity' %}", |
|||
" {% set value = tags.amenity %}", |
|||
"{% else %}", |
|||
" {% set key = 'office' %}", |
|||
" {% set value = tags.office %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": [ |
|||
"{% if key == 'office' %}", |
|||
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", |
|||
"{% else %}", |
|||
" {{ tagTransList(key, value) }}", |
|||
"{% endif %}" |
|||
], |
|||
"body": [ |
|||
"{% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}", |
|||
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}" |
|||
], |
|||
"markerSign": [ |
|||
"{% set data = const[key ~ '=' ~ value] %}", |
|||
"{% if data %}", |
|||