From 470a233b1cdf31703587bd2dac4a1b0f4589fede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 17 Sep 2020 20:20:38 +0200 Subject: [PATCH] children: re-add 'diaper=yes', add changing_table/diaper without toilets --- children.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/children.json b/children.json index 03332fe..a6bff82 100644 --- a/children.json +++ b/children.json @@ -16,7 +16,8 @@ "node[shop~'^(baby_goods|toys)$'];", "way[shop~'^(baby_goods|toys)$'];", "relation[shop~'^(baby_goods|toys)$'];", - "nwr[amenity=toilets][changing_table][changing_table!=no];", + "nwr[changing_table][changing_table!=no];", + "nwr[diaper][diaper!=no];", "node[kids_area];", "way[kids_area];", "relation[kids_area];", @@ -35,8 +36,10 @@ "{{ 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' %}", - "{{ tagTrans('amenity', 'toilets diaper=yes') }}", + "{% 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": [ @@ -77,7 +80,7 @@ " ", " ", " {{ markerCircle({})|raw }}
🚽🚼
", - " {{ tagTrans('amenity', 'toilets diaper=yes') }}", + " {{ tagTrans('amenity', 'toilets changing_table=yes') }}", " ", "" ], @@ -112,7 +115,7 @@ "query": "nwr[shop=toys]" }, "toilets": { - "name": "{{ tagTrans('amenity', 'toilets diaper=yes') }}", + "name": "{{ tagTrans('amenity', 'toilets changing_table=yes') }}", "query": "nwr[amenity=toilets][changing_table][changing_table!=no]" } }