Compare commits
merge into: OpenStreetBrowser:master
OpenStreetBrowser:aboriginal_lands
OpenStreetBrowser:bug-43
OpenStreetBrowser:buildings
OpenStreetBrowser:climbing
OpenStreetBrowser:cycle_infrastructure
OpenStreetBrowser:cycleway
OpenStreetBrowser:filter
OpenStreetBrowser:fitness_trail
OpenStreetBrowser:fossil
OpenStreetBrowser:heritage
OpenStreetBrowser:leisure-restruct
OpenStreetBrowser:master
OpenStreetBrowser:maxspeed
OpenStreetBrowser:office
OpenStreetBrowser:osm-qa
OpenStreetBrowser:parking-lanes
OpenStreetBrowser:pattern
OpenStreetBrowser:pedestrian
OpenStreetBrowser:places
OpenStreetBrowser:pt
OpenStreetBrowser:railway-electrification
OpenStreetBrowser:railway-rails
OpenStreetBrowser:shop-bulk_purchase
OpenStreetBrowser:sidewalks-category
pull from: OpenStreetBrowser:buildings
OpenStreetBrowser:aboriginal_lands
OpenStreetBrowser:bug-43
OpenStreetBrowser:buildings
OpenStreetBrowser:climbing
OpenStreetBrowser:cycle_infrastructure
OpenStreetBrowser:cycleway
OpenStreetBrowser:filter
OpenStreetBrowser:fitness_trail
OpenStreetBrowser:fossil
OpenStreetBrowser:heritage
OpenStreetBrowser:leisure-restruct
OpenStreetBrowser:master
OpenStreetBrowser:maxspeed
OpenStreetBrowser:office
OpenStreetBrowser:osm-qa
OpenStreetBrowser:parking-lanes
OpenStreetBrowser:pattern
OpenStreetBrowser:pedestrian
OpenStreetBrowser:places
OpenStreetBrowser:pt
OpenStreetBrowser:railway-electrification
OpenStreetBrowser:railway-rails
OpenStreetBrowser:shop-bulk_purchase
OpenStreetBrowser:sidewalks-category
45 Commits
78 changed files with 936 additions and 131 deletions
-
1administrative.json
-
12agriculture.json
-
1alternative_amenities.json
-
1alternative_routes.json
-
24buildings-entrances.json
-
37buildings-figure-ground.json
-
104buildings-height.json
-
120buildings-start_date.json
-
121buildings-type.json
-
49buildings.json
-
8car_amenities.json
-
3car_furniture.json
-
3car_maxspeed.json
-
3children.json
-
1communication.json
-
3construction.json
-
73craft.json
-
1culture.json
-
5culture_religion.json
-
9cycle_amenities.json
-
3cycle_routes.json
-
3education.json
-
27emergency.json
-
5financial.json
-
67gastro-smoking.json
-
3gastro.json
-
32health.json
-
4hiking_routes.json
-
3historic.json
-
37index.json
-
2internet.json
-
2lang/ast.json
-
2lang/ca.json
-
2lang/cs.json
-
2lang/de.json
-
2lang/el.json
-
4lang/en.json
-
2lang/es.json
-
2lang/et.json
-
58lang/fr.json
-
2lang/hu.json
-
2lang/it.json
-
2lang/ja.json
-
2lang/nl.json
-
2lang/pl.json
-
68lang/pt-br.json
-
2lang/ro.json
-
2lang/ru.json
-
68lang/template.json
-
2lang/uk.json
-
1leisure.json
-
1military.json
-
3natural.json
-
3other.json
-
2phone.json
-
1places.json
-
1places_geo.json
-
1playgrounds.json
-
3post.json
-
1power.json
-
1pt_amenities.json
-
3pt_routes.json
-
1pt_stops.json
-
1public.json
-
3railway-electrification.json
-
3railway-infrastructure.json
-
1religion.json
-
1residential.json
-
1resources.json
-
3shop.json
-
5sport.json
-
3tourism_attractions.json
-
5tourism_services.json
-
3walk_amenities.json
-
3waste.json
-
3water.json
-
4wikipedia.json
-
3works.json
@ -0,0 +1,24 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Eingänge", |
||||
|
"en": "Entrances" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": [ |
||||
|
"(", |
||||
|
" node[entrance];", |
||||
|
" node[building=entrance];", |
||||
|
")" |
||||
|
] |
||||
|
}, |
||||
|
"feature": { |
||||
|
"description": [ |
||||
|
"{% if tags.entrance == 'yes' or (not tags.entrance and tags.building == 'entrance') %}", |
||||
|
"{{ keyTrans('entrance') }}", |
||||
|
"{% else %}", |
||||
|
"{{ tagTrans('entrance', tags.entrance) }}", |
||||
|
"{% endif %}" |
||||
|
] |
||||
|
} |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Schwarzplan", |
||||
|
"en": "Figure-ground diagram" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": [ |
||||
|
"(", |
||||
|
" way[building];", |
||||
|
" relation[building];", |
||||
|
")" |
||||
|
] |
||||
|
}, |
||||
|
"feature": { |
||||
|
"markerSymbol": null, |
||||
|
"priority": [ |
||||
|
"{% set p = 100 %}", |
||||
|
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{{ p }}" |
||||
|
], |
||||
|
"style": { |
||||
|
"width": "0", |
||||
|
"color": "#000000", |
||||
|
"fillColor": "#000000", |
||||
|
"fillOpacity": "1" |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Gebäudehöhen", |
||||
|
"en": "Building height" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": [ |
||||
|
"(", |
||||
|
" way[building];", |
||||
|
" relation[building];", |
||||
|
")" |
||||
|
] |
||||
|
}, |
||||
|
"feature": { |
||||
|
"pre": [ |
||||
|
"{% if tags.height is defined %}", |
||||
|
"{% set approxHeight = tags.height %}", |
||||
|
"{% elseif attribute(tags, 'building:levels') is defined %}", |
||||
|
"{% set approxHeight = attribute(tags, 'building:levels') * 3.5 %}", |
||||
|
"{% endif %}", |
||||
|
"", |
||||
|
"{% if approxHeight <= 50 %}", |
||||
|
"{% set color = colorInterpolate(['green', 'red'], approxHeight / 50) %}", |
||||
|
"{% elseif approxHeight %}", |
||||
|
"{% set color = colorInterpolate(['red', 'yellow'], (approxHeight - 50) / 250) %} ", |
||||
|
"{% else %}", |
||||
|
"{% set color = '#7f7f7f' %}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"description": [ |
||||
|
"{% if tags.height is defined %}", |
||||
|
"{{ tags.height }}m", |
||||
|
"{% endif %}", |
||||
|
"", |
||||
|
"{% if attribute(tags, 'building:levels') is defined %}", |
||||
|
"{{ attribute(tags, 'building:levels') }} {{ keyTrans('building:levels') }}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"markerSymbol": null, |
||||
|
"listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
||||
|
"priority": "{{ (approxHeight|default(0)) * -1 }}", |
||||
|
"style": { |
||||
|
"width": "1", |
||||
|
"color": "#000000", |
||||
|
"fillColor": "{{ color }}", |
||||
|
"fillOpacity": "1" |
||||
|
} |
||||
|
}, |
||||
|
"info": [ |
||||
|
"<div style='display: inline-block'>", |
||||
|
"{{ tagTrans('height') }}", |
||||
|
"<table>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
||||
|
" <td colspan>{{ trans('unknown') }}</td>", |
||||
|
" </tr>", |
||||
|
"{% for i in range(0, 50, 10) %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": i }))|raw }}</td>", |
||||
|
" <td>{{ i }}m</td>", |
||||
|
" </tr>", |
||||
|
"{% endfor %}", |
||||
|
"{% for i in range(100, 250, 50) %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": i }))|raw }}</td>", |
||||
|
" <td>{{ i }}m</td>", |
||||
|
" </tr>", |
||||
|
"{% endfor %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": \"300\" }))|raw }}</td>", |
||||
|
" <td>≥300m</td>", |
||||
|
" </tr>", |
||||
|
"</table>", |
||||
|
"</div>", |
||||
|
"", |
||||
|
"<div style='display: inline-block'>", |
||||
|
"{{ tagTrans('building:levels') }}", |
||||
|
"<table>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
||||
|
" <td colspan>{{ trans('unknown') }}</td>", |
||||
|
" </tr>", |
||||
|
"{% for i in range(0, 12, 3) %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": i }))|raw }}</td>", |
||||
|
" <td>{{ i }}</td>", |
||||
|
" </tr>", |
||||
|
"{% endfor %}", |
||||
|
"{% for i in range(15, 84, 15) %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": i }))|raw }}</td>", |
||||
|
" <td>{{ i }}</td>", |
||||
|
" </tr>", |
||||
|
"{% endfor %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": \"85\" }))|raw }}</td>", |
||||
|
" <td>≥85</td>", |
||||
|
" </tr>", |
||||
|
"</table>", |
||||
|
"", |
||||
|
"</div>" |
||||
|
] |
||||
|
} |
@ -0,0 +1,120 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"en": "Building age", |
||||
|
"de": "Gebäudealter" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": [ |
||||
|
"(", |
||||
|
" way[building];", |
||||
|
" relation[building];", |
||||
|
")" |
||||
|
] |
||||
|
}, |
||||
|
"feature": { |
||||
|
"pre": [ |
||||
|
"{% if tags.start_date %}", |
||||
|
" {% set value = tags.start_date|osmParseDate %}", |
||||
|
" {% if value and value[0] and value[1] %}", |
||||
|
" {% set value = (value[1] - value[0]) / 2 + value[0] %}", |
||||
|
" {% elseif value and value[0] %}", |
||||
|
" {% set value = value[0] %}", |
||||
|
" {% elseif value and value[1] %}", |
||||
|
" {% set value = value[1] %}", |
||||
|
" {% else %}", |
||||
|
" {% set value = 'error' %}", |
||||
|
" {% endif %}", |
||||
|
"", |
||||
|
" {% if value == 'error' %}", |
||||
|
" {% set color = '#ff0000' %}", |
||||
|
" {% elseif value < 1500 %}", |
||||
|
" {% set color = '#0000ff' %}", |
||||
|
" {% elseif value < 1900 %}", |
||||
|
" {% set color = colorInterpolate([ '#0000ff', '#ff00ff' ], (value - 1500.0) / 400) %}", |
||||
|
" {% elseif value < 2000 %}", |
||||
|
" {% set color = colorInterpolate([ '#ff00ff', '#ffff00' ], (value - 1900.0) / 100) %}", |
||||
|
" {% else %}", |
||||
|
" {% set color = colorInterpolate([ '#ffff00', '#00ff00' ], (value - 2000.0) / 50) %}", |
||||
|
" {% endif %}", |
||||
|
"{% else %}", |
||||
|
"{% set color = '#7f7f7f' %}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"description": [ |
||||
|
"{% if tags.start_date %}", |
||||
|
"{{ tags.start_date }}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"markerSymbol": null, |
||||
|
"listMarkerSymbol": "{{ markerPolygon({ \"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
||||
|
"priority": [ |
||||
|
"{% set p = 100 %}", |
||||
|
"{% if tags.start_date %}{% set p = p - 20 %}{% endif %}", |
||||
|
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{{ p }}" |
||||
|
], |
||||
|
"style": { |
||||
|
"width": "1", |
||||
|
"color": "#000000", |
||||
|
"fillColor": "{{ color }}", |
||||
|
"fillOpacity": "0.8" |
||||
|
} |
||||
|
}, |
||||
|
"info": [ |
||||
|
"<table>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1400\" }))|raw }}</td>", |
||||
|
" <td><1500</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1500\" }))|raw }}</td>", |
||||
|
" <td>1500</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1600\" }))|raw }}</td>", |
||||
|
" <td>1600</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1700\" }))|raw }}</td>", |
||||
|
" <td>1700</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1800\" }))|raw }}</td>", |
||||
|
" <td>1800</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1900\" }))|raw }}</td>", |
||||
|
" <td>1900</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1950\" }))|raw }}</td>", |
||||
|
" <td>1950</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"2000\" }))|raw }}</td>", |
||||
|
" <td>2000</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"2020\" }))|raw }}</td>", |
||||
|
" <td>2020</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"xxx\" }))|raw }}</td>", |
||||
|
" <td>unparseable start_date</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
||||
|
" <td>no start_date</td>", |
||||
|
" </tr>", |
||||
|
"</table>" |
||||
|
] |
||||
|
} |
@ -0,0 +1,121 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Gebäudearten", |
||||
|
"en": "Building types" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": [ |
||||
|
"(", |
||||
|
" way[building][building!=no];", |
||||
|
" relation[building][building!=no];", |
||||
|
")" |
||||
|
] |
||||
|
}, |
||||
|
"feature": { |
||||
|
"pre": [ |
||||
|
"{% set type = tags.building|split(';')[0] %}", |
||||
|
"{% set color = const.other.color %}", |
||||
|
"{% for cat, data in const %}", |
||||
|
" {% if type in data.types %}", |
||||
|
" {% set color = data.color %}", |
||||
|
" {% endif %}", |
||||
|
"{% endfor %}" |
||||
|
], |
||||
|
"description": [ |
||||
|
"{% if tags.building == 'yes' %}", |
||||
|
"{{ keyTrans('building') }}", |
||||
|
"{% else %}", |
||||
|
"{{ tagTransList('building', tags.building) }}", |
||||
|
"{% endif %}", |
||||
|
"{% if tags.building == 'construction' and tags.construction %}", |
||||
|
"({{ tagTransList('building', tags.construction) }})", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"priority": [ |
||||
|
"{% set p = 100 %}", |
||||
|
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
||||
|
"{{ p }}" |
||||
|
], |
||||
|
"markerSymbol": null, |
||||
|
"listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
||||
|
"style": { |
||||
|
"width": "1", |
||||
|
"color": "#000000", |
||||
|
"fillColor": "{{ color }}", |
||||
|
"fillOpacity": "0.8" |
||||
|
} |
||||
|
}, |
||||
|
"info": [ |
||||
|
"<table>", |
||||
|
"{% for cat, data in const %}", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerPolygon({ \"fillColor\": data.color, \"fillOpacity\": \"0.8\", \"width\": 1, \"color\": \"#000000\" })|raw }}</td>", |
||||
|
" <td>{{ cat }}</td>", |
||||
|
" </tr>", |
||||
|
"{% endfor %}", |
||||
|
"</table>" |
||||
|
], |
||||
|
"const": { |
||||
|
"residential": { |
||||
|
"color": "#25a000", |
||||
|
"types": [ "house", "apartments", "block", "flats", "farm", "detached", "dormitory", "terrace", "houseboat", "bungalow", "static_caravan", "cabin", "residential", "semidetached_house", "ger", "trullo" ] |
||||
|
}, |
||||
|
"tourism": { |
||||
|
"color": "#814ce2", |
||||
|
"types": [ "hotel", "ruins", "conservatory" ] |
||||
|
}, |
||||
|
"commercial": { |
||||
|
"color": "#ec5bcf", |
||||
|
"types": [ "commercial", "office", "industrial", "retail", "supermarket", "warehouse", "kiosk", "mall", "shop" ] |
||||
|
}, |
||||
|
"religious": { |
||||
|
"color": "#af29cc", |
||||
|
"types": [ "religious", "cathedral", "chapel", "church", "mosque", "temple", "synagogue", "shrine", "monastery" ] |
||||
|
}, |
||||
|
"amenity": { |
||||
|
"color": "#2935cc", |
||||
|
"types": [ "kindergarten", "civic", "government", "hospital", "school", "university", "grandstand", "public", "toilets", "college" ] |
||||
|
}, |
||||
|
"farm": { |
||||
|
"color": "#92e934", |
||||
|
"types": [ "bakehouse", "barn", "cowshed", "farm_auxiliary", "greenhouse", "stable", "sty", "kitchen", "slurry_tank", "silo" ] |
||||
|
}, |
||||
|
"industrial": { |
||||
|
"color": "#e2da1b", |
||||
|
"types": [ "construction", "garbage_shed", "transformer_tower", "service", "water_tower", "industrial", "warehouse", "storage_tank" ] |
||||
|
}, |
||||
|
"transport": { |
||||
|
"color": "#1bb5e2", |
||||
|
"types": [ "carport", "garage", "garages", "bridge", "hangar", "parking", "train_station", "transportation" ] |
||||
|
}, |
||||
|
"sport": { |
||||
|
"color": "#e21b66", |
||||
|
"types": [ "pavilion", "riding_hall", "stadium", "sports_hall" ] |
||||
|
}, |
||||
|
"simple": { |
||||
|
"color": "#cc8725", |
||||
|
"types": [ "hut", "roof", "shed" ] |
||||
|
}, |
||||
|
"military": { |
||||
|
"color": "#4a7300", |
||||
|
"types": [ "bunker", "riding_hall", "sports_hall" ] |
||||
|
}, |
||||
|
"other": { |
||||
|
"color": "#ff0000", |
||||
|
"types": [] |
||||
|
}, |
||||
|
"unspecified": { |
||||
|
"color": "#7f7f7f", |
||||
|
"types": [ "yes" ] |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,37 +1,26 @@ |
|||||
{ |
{ |
||||
"type": "overpass", |
|
||||
|
"type": "index", |
||||
"name": { |
"name": { |
||||
"de": "Gebäude", |
"de": "Gebäude", |
||||
"en": "Buildings", |
"en": "Buildings", |
||||
"fr": "Bâtiments" |
|
||||
|
"fr": "Bâtiments", |
||||
|
"pt-br": "Edificações" |
||||
}, |
}, |
||||
"query": { |
|
||||
"16": [ |
|
||||
"(", |
|
||||
" way[building];", |
|
||||
" relation[building];", |
|
||||
")" |
|
||||
] |
|
||||
}, |
|
||||
"feature": { |
|
||||
"markerSymbol": null, |
|
||||
"priority": [ |
|
||||
"{% set p = 100 %}", |
|
||||
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
|
||||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
|
||||
"{{ p }}" |
|
||||
], |
|
||||
"style": { |
|
||||
"width": "1", |
|
||||
"color": "#000000", |
|
||||
"fillColor": "#000000" |
|
||||
|
"subCategories": [ |
||||
|
{ |
||||
|
"id": "buildings-type" |
||||
|
}, |
||||
|
{ |
||||
|
"id": "buildings-figure-ground" |
||||
|
}, |
||||
|
{ |
||||
|
"id": "buildings-height" |
||||
|
}, |
||||
|
{ |
||||
|
"id": "buildings-start_date" |
||||
|
}, |
||||
|
{ |
||||
|
"id": "buildings-entrances" |
||||
} |
} |
||||
} |
|
||||
|
] |
||||
} |
} |
@ -0,0 +1,73 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Handwerk", |
||||
|
"en": "Craft" |
||||
|
}, |
||||
|
"query": { |
||||
|
"15": "(node[craft];way[craft];relation[craft];);" |
||||
|
}, |
||||
|
"feature": { |
||||
|
"description": "{{ tagTransList('craft', tags.craft) }}", |
||||
|
"markerSign": "{% set craft0 = tags.craft|split(';')[0] %}{% if const.crafts[craft0] %}{% set v = const.crafts[craft0] %}{% else %}{% set v = const.default %}{% endif %}{% if v|slice(0, 3) == 'fa-' %}<i class=\"fa {{ v }}\"></i>{% else %}{{ v|raw }}{% endif %}" |
||||
|
}, |
||||
|
"const": { |
||||
|
"default": "", |
||||
|
"crafts": { |
||||
|
"bakery": "fa-birthday-cake", |
||||
|
"beekeeper": "🐝", |
||||
|
"blacksmith": "🔨", |
||||
|
"boatbuilder": "⛵", |
||||
|
"bookbinder": "📕", |
||||
|
"brewery": "fa-beer", |
||||
|
"builder": "🚧", |
||||
|
"carpenter": "", |
||||
|
"carpet_layer": "", |
||||
|
"caterer": "fa-birthday-cake", |
||||
|
"chimney_sweeper": "", |
||||
|
"clockmaker": "⌚", |
||||
|
"confectionery": "", |
||||
|
"distillery": "🍷", |
||||
|
"dressmaker": "👚", |
||||
|
"electrician": "🔌", |
||||
|
"floorer": "", |
||||
|
"gardener": "⚘", |
||||
|
"glaziery": "", |
||||
|
"handicraft": "", |
||||
|
"hvac": "", |
||||
|
"insulation": "", |
||||
|
"jeweller": "💍", |
||||
|
"key_cutter": "🔑", |
||||
|
"locksmith": "🔑", |
||||
|
"metal_construction": "", |
||||
|
"optician": "👓", |
||||
|
"painter": "🖌", |
||||
|
"parquet_layer": "", |
||||
|
"photographer": "📷", |
||||
|
"photographic_laboratory": "📷", |
||||
|
"piano_tuner": "", |
||||
|
"plasterer": "", |
||||
|
"plumber": "", |
||||
|
"pottery": "", |
||||
|
"rigger": "", |
||||
|
"roofer": "", |
||||
|
"saddler": "🐎", |
||||
|
"sailmaker": "⛵", |
||||
|
"sawmill": "", |
||||
|
"scaffolder": "", |
||||
|
"sculptor": "", |
||||
|
"shoemaker": "👞", |
||||
|
"stand_builder": "", |
||||
|
"stonemason": "", |
||||
|
"sun_protection": "", |
||||
|
"tailor": "👚", |
||||
|
"tiler": "", |
||||
|
"tinsmith": "", |
||||
|
"turner": "", |
||||
|
"upholsterer": "", |
||||
|
"watchmaker": "⌚", |
||||
|
"window_construction": "", |
||||
|
"winery": "🍷" |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"name": { |
||||
|
"de": "Rauchfreie Gastronomie", |
||||
|
"en": "Smokefree Gastronomy", |
||||
|
"fr": "Restauration sans tabac" |
||||
|
}, |
||||
|
"query": { |
||||
|
"16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);" |
||||
|
}, |
||||
|
"feature": { |
||||
|
"pre": [ |
||||
|
"{% if tags.smoking == 'yes' or tags.smoking == 'dedicated' %}", |
||||
|
" {% set smoking_color='red' %}", |
||||
|
" {% set smoking_icon='🚬' %}", |
||||
|
"{% elseif tags.smoking == 'separated' or tags.smoking == 'isolated' %}", |
||||
|
" {% set smoking_color='#ffdf00' %}", |
||||
|
" {% set smoking_icon='🚬' %}", |
||||
|
"{% elseif tags.smoking == 'no' or tags.smoking == 'outside' or tags.smokefree == 'yes' %}", |
||||
|
" {% set smoking_color='#00ff00' %}", |
||||
|
" {% set smoking_icon='🚭' %}", |
||||
|
"{% else %}", |
||||
|
" {% set smoking_color='white' %}", |
||||
|
" {% set smoking_icon='' %}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"description": "{{ tagTrans('amenity', tags.amenity) }}", |
||||
|
"body": [ |
||||
|
"<ul>", |
||||
|
" <li class='hasSymbol'>", |
||||
|
" <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>", |
||||
|
" <span class='key'>{{ keyTrans('cuisine') }}:</span>", |
||||
|
" <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>", |
||||
|
" </li>", |
||||
|
" <li class='hasSymbol'>", |
||||
|
" <span class='symbol'>🚬</span>", |
||||
|
" <span class='key'>{{ keyTrans('smoking') }}:</span>", |
||||
|
" <span class='value'>{% if tags.smoking %}{{ tagTrans('smoking', tags.smoking) }}{% else %}{{ trans('unknown') }}{% endif %}</span>", |
||||
|
" </li>", |
||||
|
"</ul>" |
||||
|
], |
||||
|
"markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}", |
||||
|
"markerSymbol": "{{ markerPointer({\"fillColor\": smoking_color })|raw }}", |
||||
|
"listMarkerSymbol": "{{ markerCircle({\"fillColor\": smoking_color })|raw }}" |
||||
|
}, |
||||
|
"info": [ |
||||
|
"{{ keyTrans('smoking') }}:", |
||||
|
"<table>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerCircle({ \"fillColor\": \"#00ff00\" })|raw }}</td>", |
||||
|
" <td>{{ tagTrans('smoking', 'no') }}, {{ tagTrans('smoking', 'outside') }}</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerCircle({ \"fillColor\": \"#ffdf00\" })|raw }}</td>", |
||||
|
" <td>{{ tagTrans('smoking', 'separated') }}, {{ tagTrans('smoking', 'isolated') }}</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerCircle({ \"fillColor\": \"red\" })|raw }}</td>", |
||||
|
" <td>{{ tagTrans('smoking', 'yes') }}, {{ tagTrans('smoking', 'dedicated') }}</td>", |
||||
|
" </tr>", |
||||
|
" <tr>", |
||||
|
" <td>{{ markerCircle({ \"fillColor\": \"white\" })|raw }}</td>", |
||||
|
" <td>{{ trans('unknown') }}</td>", |
||||
|
" </tr>", |
||||
|
"</table>" |
||||
|
] |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
{ |
||||
|
"category:administrative": "Divisão Político-Administrativa", |
||||
|
"category:agriculture": "Agricultura", |
||||
|
"category:alternative_amenities": "Equipamentos", |
||||
|
"category:alternative_routes": "Rotas", |
||||
|
"category:buildings": "Edificações", |
||||
|
"category:car_amenities": "Equipamentos", |
||||
|
"category:car_furniture": "Mobiliário Urbano", |
||||
|
"category:car_maxspeed": "Velocidade Máxima", |
||||
|
"category:children": "Equipamentos Infantis", |
||||
|
"category:communication": "Comunicação", |
||||
|
"category:construction": "Canteiros de Obras", |
||||
|
"category:craft": "", |
||||
|
"category:culture": "Cultura", |
||||
|
"category:culture_religion": "Cultura", |
||||
|
"category:cycle_amenities": "Equipamentos", |
||||
|
"category:cycle_routes": "Ciclorrotas", |
||||
|
"category:education": "Educação", |
||||
|
"category:emergency": "Emergência", |
||||
|
"category:financial": "Finanças", |
||||
|
"category:gastro-smoking": "", |
||||
|
"category:gastro": "Gastronomia", |
||||
|
"category:health": "Saúde e Assistência", |
||||
|
"category:hiking_routes": "Rotas de Caminhada", |
||||
|
"category:historic": "Histórico", |
||||
|
"category:index": null, |
||||
|
"category:internet": "Acesso à Internet", |
||||
|
"category:leisure": "Lazer", |
||||
|
"category:military": "Militar", |
||||
|
"category:natural": "Formações Naturais", |
||||
|
"category:other": "Outros", |
||||
|
"category:phone": "Telefone", |
||||
|
"category:places": "Lugares", |
||||
|
"category:places_geo": "Lugares", |
||||
|
"category:playgrounds": "Parquinhos", |
||||
|
"category:post": "Correios", |
||||
|
"category:power": "Energia", |
||||
|
"category:pt_amenities": "Equipamentos", |
||||
|
"category:pt_routes": "Rotas", |
||||
|
"category:pt_stops": "Paradas e Estações", |
||||
|
"category:public": "Serviços Públicos", |
||||
|
"category:railway-electrification": "Eletrificação Ferroviária", |
||||
|
"category:railway-infrastructure": "Infraestrutura Ferroviária", |
||||
|
"category:religion": "Religião", |
||||
|
"category:residential": "Áreas Residenciais", |
||||
|
"category:resources": "Extração de Recursos", |
||||
|
"category:shop": "Compras", |
||||
|
"category:sport": "Esportes", |
||||
|
"category:tourism_attractions": "Turismo", |
||||
|
"category:tourism_services": "Turismo", |
||||
|
"category:transport_alternative": null, |
||||
|
"category:walk_amenities": "Equipamentos", |
||||
|
"category:waste": "Lixo", |
||||
|
"category:water": "Hidrografia", |
||||
|
"category:wikipedia": "Wikipédia", |
||||
|
"category:works": "Fábricas", |
||||
|
"category:cycle_infrastructure": "Ciclovias", |
||||
|
"category:infrastructure": "Infraestrutura", |
||||
|
"category:leisure_sport_shopping": "Lazer, Esportes e Compras", |
||||
|
"category:railway": "Ferrovia", |
||||
|
"category:services": "Serviços", |
||||
|
"category:special": "Especial", |
||||
|
"category:transport": "Transportes", |
||||
|
"category:transport_car": "Tráfego Individual", |
||||
|
"category:transport_cycle": "Ciclismo", |
||||
|
"category:transport_pt": "Transporte Público", |
||||
|
"category:transport_walk": "Pedestre" |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
{ |
||||
|
"category:administrative": "", |
||||
|
"category:agriculture": "", |
||||
|
"category:alternative_amenities": "", |
||||
|
"category:alternative_routes": "", |
||||
|
"category:buildings": "", |
||||
|
"category:car_amenities": "", |
||||
|
"category:car_furniture": "", |
||||
|
"category:car_maxspeed": "", |
||||
|
"category:children": "", |
||||
|
"category:communication": "", |
||||
|
"category:construction": "", |
||||
|
"category:craft": "", |
||||
|
"category:culture": "", |
||||
|
"category:culture_religion": "", |
||||
|
"category:cycle_amenities": "", |
||||
|
"category:cycle_routes": "", |
||||
|
"category:education": "", |
||||
|
"category:emergency": "", |
||||
|
"category:financial": "", |
||||
|
"category:gastro-smoking": "", |
||||
|
"category:gastro": "", |
||||
|
"category:health": "", |
||||
|
"category:hiking_routes": "", |
||||
|
"category:historic": "", |
||||
|
"category:index": "", |
||||
|
"category:internet": "", |
||||
|
"category:leisure": "", |
||||
|
"category:military": "", |
||||
|
"category:natural": "", |
||||
|
"category:other": "", |
||||
|
"category:phone": "", |
||||
|
"category:places": "", |
||||
|
"category:places_geo": "", |
||||
|
"category:playgrounds": "", |
||||
|
"category:post": "", |
||||
|
"category:power": "", |
||||
|
"category:pt_amenities": "", |
||||
|
"category:pt_routes": "", |
||||
|
"category:pt_stops": "", |
||||
|
"category:public": "", |
||||
|
"category:railway-electrification": "", |
||||
|
"category:railway-infrastructure": "", |
||||
|
"category:religion": "", |
||||
|
"category:residential": "", |
||||
|
"category:resources": "", |
||||
|
"category:shop": "", |
||||
|
"category:sport": "", |
||||
|
"category:tourism_attractions": "", |
||||
|
"category:tourism_services": "", |
||||
|
"category:transport_alternative": "", |
||||
|
"category:walk_amenities": "", |
||||
|
"category:waste": "", |
||||
|
"category:water": "", |
||||
|
"category:wikipedia": "", |
||||
|
"category:works": "", |
||||
|
"category:cycle_infrastructure": "", |
||||
|
"category:infrastructure": "", |
||||
|
"category:leisure_sport_shopping": "", |
||||
|
"category:railway": "", |
||||
|
"category:services": "", |
||||
|
"category:special": "", |
||||
|
"category:transport": "", |
||||
|
"category:transport_car": "", |
||||
|
"category:transport_cycle": "", |
||||
|
"category:transport_pt": "", |
||||
|
"category:transport_walk": "" |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue