4 Commits
036a8a1a6d
...
974d0afe1f
Author | SHA1 | Message | Date |
---|---|---|---|
Stephan Bösch-Plepelits | 974d0afe1f |
walk_amenities_qa: new category for walk amenities quality control
|
2 months ago |
Stephan Bösch-Plepelits | 99a86877a1 |
walk_amenities: include conveying steps/footways, improve icons
|
2 months ago |
Stephan Bösch-Plepelits | 547c249af9 |
cycle_directions: copy category from test repository
|
4 months ago |
Carlos Sanchez | c116c2b3bc |
Translated using Weblate (Catalan)
Currently translated at 100.0% (108 of 108 strings) Translation: OpenStreetBrowser/Main Categories Translate-URL: http://weblate.openstreetbrowser.org/projects/openstreetbrowser/main-categories/ca/ |
2 months ago |
6 changed files with 428 additions and 88 deletions
-
72cycle_directions.yaml
-
6index.json
-
186lang/ca.json
-
2lang/en.json
-
19walk_amenities.yaml
-
231walk_amenities_qa.yaml
@ -0,0 +1,72 @@ |
|||
name: |
|||
de: Radwegrichtungen |
|||
en: Cycleway Directions |
|||
query: |
|||
14: |- |
|||
( |
|||
way[highway=cycleway]; |
|||
way[cycleway]; |
|||
way["cycleway:left"]; |
|||
way["cycleway:right"]; |
|||
way[highway][oneway]; |
|||
way['oneway:bicycle']; |
|||
) |
|||
feature: |
|||
pre: |- |
|||
{% set oneway = 0 %} |
|||
{% if tags.oneway in [ 'yes', '1' ] %}{% set oneway = 1 %} |
|||
{% elseif tags.oneway in [ '-1' ] %}{% set oneway = -1 %} |
|||
{% endif %} |
|||
|
|||
{% set driving_side = 'right' %} |
|||
markerSymbol: null |
|||
listMarkerSymbol: line |
|||
styles: '{% if oneway != 0 %}default,{% endif %}left,right' |
|||
style: |
|||
width: 0 |
|||
pattern: arrowHead |
|||
pattern-offset: 17 |
|||
pattern-repeat: 25 |
|||
pattern-polygon: true |
|||
pattern-pixelSize: |- |
|||
{% if tags.highway == "cycleway" %}7{% else %}9{% endif %} |
|||
pattern-path-color: |- |
|||
{% if tags.highway == "cycleway" %}#007f00{% else %}#000000{% endif %} |
|||
pattern-path-width: 1 |
|||
pattern-path-fillOpacity: 1 |
|||
pattern-angleCorrection: |- |
|||
{% if oneway == -1 %}180{% else %}0{% endif %} |
|||
style:highlight: null |
|||
style:left: |
|||
width: 0 |
|||
pattern: |- |
|||
{% if tags.cycleway in [ "opposite", "opposite_lane", "opposite_track" ] or attribute(tags, "cycleway:left") in [ "opposite", "opposite_lane", "opposite_track" ] or attribute(tags, "cycleway:right") in [ "opposite", "opposite_lane", "opposite_track" ] or attribute(tags, "oneway:bicycle") == "no" %}arrowHead{% endif %} |
|||
pattern-offset: 0 |
|||
pattern-repeat: 25 |
|||
pattern-polygon: true |
|||
pattern-pixelSize: 7 |
|||
pattern-path-width: 1 |
|||
pattern-path-color: |- |
|||
{% if tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_track' ] or attribute(tags, 'cycleway:left') in [ 'opposite_track' ] or attribute(tags, 'cycleway:right') in [ 'opposite_track' ]) %} |
|||
#00af00 |
|||
{% elseif tags.oneway in [ 'yes', '1' ] and (tags.cycleway in [ 'opposite_lane', 'opposite' ] or attribute(tags, 'cycleway:left') in [ 'opposite', 'opposite_lane' ] or attribute(tags, 'cycleway:right') in [ 'opposite', 'opposite_lane' ] or attribute(tags, 'oneway:bicycle') == 'no') %} |
|||
#00ff00 |
|||
{% endif %} |
|||
pattern-path-fillOpacity: 1 |
|||
pattern-angleCorrection: |- |
|||
{% if oneway == -1 %}0{% else %}180{% endif %} |
|||
info: |- |
|||
<table> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "oneway": "yes", "highway": "cycleway" }))|raw }}</td> |
|||
<td>{{ tagTrans('highway', 'cycleway') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "oneway": "yes", "cycleway": "track" }))|raw }}</td> |
|||
<td>{{ tagTrans('cycleway', 'track') }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td>{{ markerLine(evaluate({ "oneway": "yes", "cycleway": "lane" }))|raw }}</td> |
|||
<td>{{ tagTrans('cycleway', 'lane') }}</td> |
|||
</tr> |
|||
</table> |
@ -1,94 +1,110 @@ |
|||
{ |
|||
"Objects with diet information": "", |
|||
"category:administrative": "", |
|||
"category:agriculture": "", |
|||
"category:alternative_amenities": "", |
|||
"category:alternative_routes": "", |
|||
"category:buildings": "", |
|||
"category:buildings-entrances": "", |
|||
"category:buildings-figure-ground": "", |
|||
"category:buildings-height": "", |
|||
"category:buildings-start_date": "", |
|||
"category:buildings-type": "", |
|||
"category:car_amenities": "", |
|||
"category:car_furniture": "", |
|||
"category:car_maxspeed": "", |
|||
"category:car_routes": "", |
|||
"category:children": "", |
|||
"category:coal": "", |
|||
"Objects with diet information": "Objectes amb informació alimentaria", |
|||
"category:administrative": "Àrees Administratives", |
|||
"category:agriculture": "Agricultura", |
|||
"category:alternative_amenities": "Serveis", |
|||
"category:alternative_routes": "Rutes", |
|||
"category:buildings": "Edificis", |
|||
"category:buildings-entrances": "Entrades", |
|||
"category:buildings-figure-ground": "Mapa a peu de carrer", |
|||
"category:buildings-height": "Alçada de l'edifici", |
|||
"category:buildings-start_date": "Antiguitat de l'edifici", |
|||
"category:buildings-type": "Tipologies d'edificació", |
|||
"category:car_amenities": "Serveis", |
|||
"category:car_furniture": "Mobiliari Urbà", |
|||
"category:car_maxspeed": "Velocitat màxima", |
|||
"category:car_routes": "Rutes en cotxe", |
|||
"category:children": "Serveis per a infants", |
|||
"category:coal": "Carbó", |
|||
"category:communication": "Comunicacions", |
|||
"category:construction": "", |
|||
"category:craft": "", |
|||
"category:construction": "Llocs en Construcció", |
|||
"category:craft": "Artesania", |
|||
"category:culture": "Cultura", |
|||
"category:culture_religion": "Cultura i religió", |
|||
"category:cycle_amenities": "", |
|||
"category:cycle_routes": "", |
|||
"category:education": "", |
|||
"category:electric_power": "", |
|||
"category:cycle_amenities": "Serveis", |
|||
"category:cycle_routes": "Rutes Ciclistes", |
|||
"category:education": "Serveis Educatius", |
|||
"category:electric_power": "Energia Elèctrica", |
|||
"category:emergency": "Serveis d'emergència", |
|||
"category:energy": "", |
|||
"category:financial": "", |
|||
"category:gastro": "", |
|||
"category:gastro-smoking": "", |
|||
"category:health": "", |
|||
"category:hiking_routes": "", |
|||
"category:historic": "", |
|||
"category:index": "", |
|||
"category:infrastructure": "", |
|||
"category:energy": "Energia", |
|||
"category:financial": "Financer", |
|||
"category:gastro": "Gastronomia", |
|||
"category:gastro-smoking": "Gastronomia Lliure de Fum", |
|||
"category:health": "Sanitat", |
|||
"category:hiking_routes": "Rutes Excursionistes", |
|||
"category:historic": "Històric", |
|||
"category:index": "Índex de Categories", |
|||
"category:infrastructure": "Infraestructura", |
|||
"category:internet": "Accés a Internet", |
|||
"category:law": "", |
|||
"category:leisure": "", |
|||
"category:law": "Llei", |
|||
"category:leisure": "Oci", |
|||
"category:leisure_sport_shopping": "Oci, esport i compres", |
|||
"category:memorial": "", |
|||
"category:military": "", |
|||
"category:mtb-routes": "", |
|||
"category:natural": "", |
|||
"category:office": "", |
|||
"category:oil_gas": "", |
|||
"category:organisations": "", |
|||
"category:other": "", |
|||
"category:outdoor": "", |
|||
"category:phone": "", |
|||
"category:places": "", |
|||
"category:places_geo": "", |
|||
"category:playgrounds": "", |
|||
"category:post": "", |
|||
"category:power_routes": "", |
|||
"category:pt": "", |
|||
"category:pt:routes": "", |
|||
"category:pt:stops": "", |
|||
"category:pt_amenities": "", |
|||
"category:public": "", |
|||
"category:railway": "", |
|||
"category:railway-electrification": "", |
|||
"category:railway-gauge": "", |
|||
"category:railway-infrastructure": "", |
|||
"category:railway-maxspeed": "", |
|||
"category:railway-routes": "", |
|||
"category:religion": "", |
|||
"category:renewables": "", |
|||
"category:residential": "", |
|||
"category:resources": "", |
|||
"category:memorial": "Memorials i Monuments", |
|||
"category:military": "Militar", |
|||
"category:mtb-routes": "Rutes Ciclistes de Muntanya", |
|||
"category:natural": "Formacions Naturals", |
|||
"category:office": "Oficines", |
|||
"category:oil_gas": "Petroli i gas natural", |
|||
"category:organisations": "Organitzacions", |
|||
"category:other": "Altres", |
|||
"category:outdoor": "Activitats a l'aire lliure", |
|||
"category:phone": "Telèfon", |
|||
"category:places": "Llocs", |
|||
"category:places_geo": "Llocs", |
|||
"category:playgrounds": "Parc infantil", |
|||
"category:post": "Correus", |
|||
"category:power_routes": "Rutes d'energia", |
|||
"category:pt": "Mapa de transport públic", |
|||
"category:pt:routes": "Rutes", |
|||
"category:pt:stops": "Parades i Estacions", |
|||
"category:pt_amenities": "Serveis", |
|||
"category:public": "Serveis Públics", |
|||
"category:railway": "Via fèrria", |
|||
"category:railway-electrification": "Electrificació de la via fèrria", |
|||
"category:railway-gauge": "Ample de via fèrria", |
|||
"category:railway-infrastructure": "Infraestructura fèrria", |
|||
"category:railway-maxspeed": "Velocitat màxima de la via fèrria", |
|||
"category:railway-routes": "Rutes Fèrries", |
|||
"category:religion": "Religió", |
|||
"category:renewables": "Renovables", |
|||
"category:residential": "Àrees Residencials", |
|||
"category:resources": "Extracció de Recursos", |
|||
"category:services": "Serveis", |
|||
"category:shop": "", |
|||
"category:special": "", |
|||
"category:sport": "", |
|||
"category:swimming_bathing": "", |
|||
"category:tourism_attractions": "", |
|||
"category:tourism_services": "", |
|||
"category:transport": "", |
|||
"category:transport_alternative": "", |
|||
"category:transport_car": "", |
|||
"category:transport_cycle": "", |
|||
"category:transport_pt": "", |
|||
"category:transport_walk": "", |
|||
"category:walk_amenities": "", |
|||
"category:waste": "", |
|||
"category:water": "", |
|||
"category:wikipedia": "", |
|||
"category:works": "", |
|||
"category:xmas": "", |
|||
"date format not understood": "", |
|||
"outdated feature": "", |
|||
"xmas:outdated-warning": "" |
|||
"category:shop": "Compres", |
|||
"category:special": "Especial", |
|||
"category:sport": "Esport", |
|||
"category:swimming_bathing": "Natació i bany", |
|||
"category:tourism_attractions": "Turisme", |
|||
"category:tourism_services": "Turisme", |
|||
"category:transport": "Transport", |
|||
"category:transport_alternative": "Modes Alternatius de Transport", |
|||
"category:transport_car": "Trànsit Individual", |
|||
"category:transport_cycle": "Ciclisme", |
|||
"category:transport_pt": "Transport Públic", |
|||
"category:transport_walk": "Caminar", |
|||
"category:walk_amenities": "Serveis", |
|||
"category:waste": "Deixalles", |
|||
"category:water": "Cossos d'aigua", |
|||
"category:wikipedia": "Viquipèdia", |
|||
"category:works": "Treballs", |
|||
"category:xmas": "Nadal", |
|||
"date format not understood": "Format de Data No Vàlida", |
|||
"outdated feature": "Característiques obsoletes", |
|||
"xmas:outdated-warning": "La característica no s'ha actualitzat per a la temporada actual! Comproveu i configureu l'etiqueta 'xmas:lastcheck' a la data actual.", |
|||
"category:climbing": "Escalada", |
|||
"category:culture-media": "Cultura - Mitjans/Wikidata", |
|||
"category:developable_areas": "Àrees en Desenvolupament", |
|||
"category:developments": "Planificació i Construcció", |
|||
"category:fixme": "Corregeix-me", |
|||
"category:footways": "Camins peatonals", |
|||
"category:heritage": "Protecció del Patrimoni", |
|||
"category:kerbs": "Voreres", |
|||
"category:osm-qa": "Control de Qualitat d'OpenStreetMap", |
|||
"category:paddling": "Remar", |
|||
"category:paddling_amenities": "Instal·lacions de Rem", |
|||
"category:paddling_hazards": "Riscos de Rem", |
|||
"category:paddling_routes": "Rutes de Rem", |
|||
"category:proposals": "Propostes", |
|||
"category:roads": "Carreteres", |
|||
"deprecated": "L'etiqueta %s està obsoleta. Consulteu <a target='_blank' href=\"%s\">aquí</a> per obtenir més informació." |
|||
} |
@ -0,0 +1,231 @@ |
|||
query: |
|||
'13': |- |
|||
( |
|||
node[highway~"^(elevator)$"]; |
|||
node[information]; |
|||
node[tourism~"^(viewpoint)$"]; |
|||
node[man_made~"^(cairn)$"]; |
|||
nwr[amenity~"^(shelter)$"]; |
|||
way[highway~'^(footway|steps)$'][conveying]; |
|||
) |
|||
'16': |- |
|||
( |
|||
node[highway~"^(crossing|elevator)$"]; |
|||
node[information]; |
|||
node[tourism~"^(viewpoint)$"]; |
|||
node[man_made~"^(cairn)$"]; |
|||
nwr[amenity~"^(bench|shelter)$"]; |
|||
node[leisure~"^(picnic_table)$"]; |
|||
way[highway~'^(footway|steps)$'][conveying]; |
|||
) |
|||
feature: |
|||
pre: |- |
|||
{% if tags.information %} |
|||
{% set key = 'information' %} |
|||
{% set value = tags.information %} |
|||
{% elseif tags.amenity in [ 'bench', 'shelter' ] %} |
|||
{% set key = 'amenity' %} |
|||
{% set value = tags.amenity %} |
|||
{% elseif tags.leisure in [ 'picnic_table' ] %} |
|||
{% set key = 'leisure' %} |
|||
{% set value = tags.leisure %} |
|||
{% elseif tags.man_made in [ 'cairn' ] %} |
|||
{% set key = 'man_made' %} |
|||
{% set value = tags.man_made %} |
|||
{% elseif tags.tourism in [ 'viewpoint'] %} |
|||
{% set key = 'tourism' %} |
|||
{% set value = tags.tourism %} |
|||
{% elseif tags.conveying and tags.highway %} |
|||
{% set key = 'highway' %} |
|||
{% set value = tags.highway ~ ' conveying' %} |
|||
{% else %} |
|||
{% set key = 'highway' %} |
|||
{% set value = tags.highway %} |
|||
{% endif %} |
|||
|
|||
{% set type_data = const[key ~ '=' ~ value] %} |
|||
|
|||
{% set classify = '#0000ff' %} |
|||
{% for k in type_data.optional %} |
|||
{% if not attribute(tags, k) %} |
|||
{% set classify = '#00ffff' %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
{% for k in type_data.require %} |
|||
{% if not attribute(tags, k) %} |
|||
{% set classify = '#ff0000' %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
description: |- |
|||
{{ tagTrans(key, value) }} |
|||
markerSymbol: | |
|||
{{ markerPointer({ fillColor: classify }) }} |
|||
listMarkerSymbol: | |
|||
{{ markerCircle({ fillColor: classify }) }} |
|||
markerSign: |- |
|||
{{ type_data.sign|raw }} |
|||
priority: |- |
|||
{{ type_data.priority }} |
|||
body: |- |
|||
Strongly recommended tags: |
|||
<ul> |
|||
{% for k in type_data.require %} |
|||
<li class='hasSymbol'> |
|||
{{ attribute(tags, k) ? '✓' : '✕' }} |
|||
<a target='_blank' href='https://wiki.openstreetmap.org/wiki/Key:{{ k }}'>{{ k }}</a>: {{ attribute(tags, k) }} |
|||
</li> |
|||
{% endfor %} |
|||
</ul> |
|||
Further recommended tags: |
|||
<ul> |
|||
{% for k in type_data.optional %} |
|||
<li class='hasSymbol'> |
|||
{{ attribute(tags, k) ? '✓' : '✕' }} |
|||
<a target='_blank' href='https://wiki.openstreetmap.org/wiki/Key:{{ k }}'>{{ k }}</a>: {{ attribute(tags, k) }} |
|||
</li> |
|||
{% endfor %} |
|||
</ul> |
|||
filter: |
|||
type: |
|||
name: | |
|||
{{ trans('filter:type') }} |
|||
type: select |
|||
show_default: true |
|||
values: |- |
|||
{% for kv, d in const %} |
|||
<option value='{{ kv }}' query='{{ d.query|default("nwr[" ~ kv ~"]") }}'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option> |
|||
{% endfor %} |
|||
const: |
|||
highway=crossing: |
|||
priority: 10 |
|||
sign: <i class='fa fa-bars' aria-hidden='true'></i> |
|||
require: |
|||
- crossing |
|||
optional: |
|||
- crossing:island |
|||
- crossing:markings |
|||
- lit |
|||
highway=elevator: |
|||
priority: 2 |
|||
sign: <i class='fa fa-caret-square-o-up' aria-hidden='true'></i> |
|||
require: |
|||
- level |
|||
- wheelchair |
|||
- operator |
|||
- maxweight |
|||
- capacity:person |
|||
optional: |
|||
- level:ref |
|||
- fee |
|||
- bicycle |
|||
- goods |
|||
- display |
|||
- door |
|||
- door:width |
|||
- door:height |
|||
- handrail |
|||
- lit |
|||
- height |
|||
- length |
|||
- width |
|||
- speech_output |
|||
- tactile_writing:braille:de |
|||
- tactile_writing:embossed_printed_letters:de |
|||
information=guidepost: |
|||
priority: 2 |
|||
sign: <i class='fa fa-map-signs' aria-hidden='true'></i> |
|||
require: |
|||
- tourism |
|||
optional: |
|||
- guidepost |
|||
- guide_type |
|||
- name |
|||
- ele |
|||
- ref |
|||
information=map: |
|||
priority: 2 |
|||
sign: <i class='fa fa-map' aria-hidden='true'></i> |
|||
require: |
|||
- map_type |
|||
optional: |
|||
- map_size |
|||
- map_source |
|||
information=board: |
|||
priority: 2 |
|||
sign: <img data-src='temaki:info_board'> |
|||
optional: |
|||
- board_type |
|||
- board:title |
|||
information=office: |
|||
priority: 1 |
|||
sign: <i class='fa fa-info-circle' aria-hidden='true'></i> |
|||
require: |
|||
- name |
|||
optional: |
|||
- operator |
|||
- opening_hours |
|||
- wheelchair |
|||
amenity=bench: |
|||
priority: 3 |
|||
sign: <img data-src='temaki:bench'> |
|||
require: |
|||
- backrest |
|||
- capacity |
|||
- material |
|||
optional: |
|||
- bench:type |
|||
- covered |
|||
- length |
|||
- seats |
|||
- two_sided |
|||
leisure=picnic_table: |
|||
priority: 3 |
|||
sign: <img data-src='maki:picnic-site'> |
|||
require: |
|||
- backrest |
|||
- capacity |
|||
- material |
|||
optional: |
|||
- bench:type |
|||
- covered |
|||
- length |
|||
- two_sided |
|||
man_made=cairn: |
|||
priority: 2 |
|||
sign: <img data-src='temaki:cairn'> |
|||
amenity=shelter: |
|||
priority: 1 |
|||
sign: <img data-src='maki:shelter'> |
|||
require: |
|||
- shelter_type |
|||
- bench |
|||
- bin |
|||
optional: |
|||
- table |
|||
- picnic_table |
|||
- access |
|||
- lockable |
|||
highway=steps conveying: |
|||
sign: / |
|||
query: nwr[highway=steps][conveying] |
|||
priority: 2 |
|||
require: |
|||
- level |
|||
- incline |
|||
optional: |
|||
- level:ref |
|||
- width |
|||
- tactile_paving |
|||
- duration |
|||
highway=footway conveying: |
|||
sign: / |
|||
query: nwr[highway=footway][conveying] |
|||
priority: 2 |
|||
require: |
|||
- level |
|||
- incline |
|||
optional: |
|||
- level:ref |
|||
- width |
|||
- tactile_paving |
|||
- duration |
Write
Preview
Loading…
Cancel
Save
Reference in new issue