MapComplete/Docs/Themes/zhv.md

28 KiB

ZHV Import Tool ( zhv )

This document details some technical information about this MapComplete theme, mostly about the attributes used in the theme. Various links point toward more information about the attributes, e.g. to the OpenStreetMap-wiki, to TagInfo or tools creating statistics The theme introduction reads:

Small theme allowing import of bus stops from the Zentrales Haltestellenverzeichnis in Germany.

This theme contains the following layers:

Available languages:

  • en
  • cs

Table of contents

  1. Layers defined in this theme configuration file
  2. zhv
  1. all_transit_stops

Layers defined in this theme configuration file

These layers can not be reused in different themes.

zhv

  • This layer is shown at zoomlevel 15 and higher

This layer is loaded from an external source, namely

https://robinlinde.github.io/tiles/zhv_haltestellen/{z}/{x}/{y}.json

No themes use this layer

Basic tags for this layer

Elements must match the expression Type~^(Q)$

Execute on overpass

Supported attributes

Featureview elements and TagRenderings

id question labels freeform key
name This stop is called {Name} Multiple choice only
id _The ID of this stop is {ifopt} Multiple choice only
closest_stop _The closest stop in OSM is {closest_osm_stop_name}. Multiple choice only
import _{import_button(transit_stops,tags,Add this stop,,,,,,)} Multiple choice only
tag-hint _This stop will get the following tags: {tags} Multiple choice only
imported This stop is (probably) already added. View the point. Multiple choice only
minimap_with_poi _{minimap(18, id, closest_osm_stop_id):height:10rem} Multiple choice only
leftover-questions {questions( ,hidden)} ignore-docs, added_by_default Multiple choice only
lod
(Original in questions)
{linked_data_from_website()} added_by_default Multiple choice only
spacer
Multiple choice only

name

This tagrendering has no question and is thus read-only

This stop is called {Name}

id

This tagrendering has no question and is thus read-only

The ID of this stop is {_ifopt}

closest_stop

This tagrendering has no question and is thus read-only

The closest stop in OSM is {_closest_osm_stop_name}.

import

This tagrendering has no question and is thus read-only

{import_button(transit_stops,_tags,Add this stop,,,,,,)}

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=no | _has_closeby_feature=maybe

tag-hint

This tagrendering has no question and is thus read-only

This stop will get the following tags: {_tags}

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=no | _has_closeby_feature=maybe

imported

This tagrendering has no question and is thus read-only

This stop is (probably) already added. View the point.

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=yes | _has_closeby_feature=maybe

minimap_with_poi

This tagrendering has no question and is thus read-only

{minimap(18, id, _closest_osm_stop_id):height:10rem}

leftover-questions

This tagrendering has no question and is thus read-only

{questions( ,hidden)}

This tagrendering has labels ignore-docs added_by_default

lod

This tagrendering has no question and is thus read-only

{linked_data_from_website()}

This tagrendering has labels added_by_default

spacer

This tagrendering has no question and is thus read-only

all_transit_stops

This layer is based on transit_stops

Layer showing different types of transit stops.

  • This layer is shown at zoomlevel 15 and higher

No themes use this layer

Basic tags for this layer

Elements must match the expression public_transport=platform

Execute on overpass

Supported attributes

Warning:: this quick overview is incomplete

attribute type values which are supported by this layer
name string name
ref string ref
shelter Multiple choice shelter=yes shelter=no
bench Multiple choice bench=yes bench=no
bin Multiple choice bin=yes bin=no
wheelchair Multiple choice wheelchair=designated wheelchair=yes wheelchair=limited wheelchair=no
tactile_paving Multiple choice tactile_paving=yes tactile_paving=no
lit Multiple choice lit=yes lit=no
departures_board Multiple choice departures_board=realtime departures_board=timetable departures_board=interval departures_board=no
ref:IFOPT string

Featureview elements and TagRenderings

id question labels freeform key
stop_name What is the name of this stop?
This stop is called {name}
1 options
name (string)
ref What is the platform reference of this stop?
The platform reference of this stop is {ref}.
1 options
ref (string)
images
(Original in questions)
{image_carousel()}{image_upload()} Multiple choice only
shelter Does this stop have a shelter?
3 options
Multiple choice only
bench Does this stop have a bench?
3 options
Multiple choice only
bin Does this stop have a bin?
3 options
Multiple choice only
wheelchair-access
(Original in questions)
Is this place accessible with a wheelchair?
4 options
Multiple choice only
tactile_paving Does this stop have tactile paving?
2 options
Multiple choice only
lit Is this stop lit?
2 options
Multiple choice only
departures_board 6 options Multiple choice only
contained_routes _

{_contained_routes_count} routes stop at this stop

    {contained_routes}
Multiple choice only
type What kind of transit types is this stop used for?
6 options
Multiple choice only
ifopt What is the IFOPT reference of this stop?
The IFOPT reference of this stop is {ref:IFOPT}.
ref:IFOPT (string)
zhv_stop _There is a ZHV stop nearby: {closest_zhv_stop_name}. Multiple choice only
zhv_apply _{tag_apply(ref:IFOPT=$_ifopt,Add IFOPT to this stop,./assets/svg/addSmall.svg,closest_osm_stop_id,)} Multiple choice only
minimap_with_poi _{minimap(18, id, closest_zhv_stop_id):height:10rem} Multiple choice only
leftover-questions {questions( ,hidden)} ignore-docs, added_by_default Multiple choice only
lod
(Original in questions)
{linked_data_from_website()} added_by_default Multiple choice only
spacer
Multiple choice only

stop_name

The question is What is the name of this stop?

This stop is called {name} is shown if name is set.

  • This stop has no name is shown if with noname=yes & name=

ref

The question is What is the platform reference of this stop?

The platform reference of this stop is {ref}. is shown if ref is set.

  • This stop has no platform reference is shown if with ref=

images

This block shows the known images which are linked with the image-keys, but also via mapillary and wikidata and shows the button to upload new images This tagrendering has no question and is thus read-only

{image_carousel()}{image_upload()}

shelter

The question is Does this stop have a shelter?

  • This stop has a shelter is shown if with shelter=yes
  • This stop does not have a shelter is shown if with shelter=no
  • This stop has a shelter, that's separately mapped is shown if with shelter=separate. This option cannot be chosen as answer

bench

The question is Does this stop have a bench?

  • This stop has a bench is shown if with bench=yes
  • This stop does not have a bench is shown if with bench=no
  • This stop has a bench, that's separately mapped is shown if with bench=separate. This option cannot be chosen as answer

bin

The question is Does this stop have a bin?

  • This stop has a bin is shown if with bin=yes
  • This stop does not have a bin is shown if with bin=no
  • This stop has a bin, that's separately mapped is shown if with bin=separate. This option cannot be chosen as answer

wheelchair-access

The question is Is this place accessible with a wheelchair?

  • This place is specially adapted for wheelchair users is shown if with wheelchair=designated
  • This place is easily reachable with a wheelchair is shown if with wheelchair=yes
  • It is possible to reach this place in a wheelchair, but it is not easy is shown if with wheelchair=limited
  • This place is not reachable with a wheelchair is shown if with wheelchair=no

tactile_paving

The question is Does this stop have tactile paving?

lit

The question is Is this stop lit?

  • This stop is lit is shown if with lit=yes
  • This stop is not lit is shown if with lit=no

departures_board

This tagrendering has no question and is thus read-only

contained_routes

This tagrendering has no question and is thus read-only

{_contained_routes_count} routes stop at this stop

    {_contained_routes}

This tagrendering is only visible in the popup if the following condition is met: _contained_routes~.+

type

The question is What kind of transit types is this stop used for?

  • This stop is used for bus transit. is shown if with bus=yes. Unselecting this answer will add bus= & highway=
  • This stop is used for train transit. is shown if with train=yes. Unselecting this answer will add train=
  • This stop is used for light rail transit. is shown if with light_rail=yes. Unselecting this answer will add light_rail=
  • This stop is used for subway transit. is shown if with subway=yes. Unselecting this answer will add subway=
  • This stop is used for tram transit. is shown if with tram=yes. Unselecting this answer will add tram=
  • This stop is used for ferry transit. is shown if with ferry=yes. Unselecting this answer will add ferry=

This tagrendering is only visible in the popup if the following condition is met: _geometry:type=Point

ifopt

The question is What is the IFOPT reference of this stop?

The IFOPT reference of this stop is {ref:IFOPT}. is shown if ref:IFOPT is set.

zhv_stop

This tagrendering has no question and is thus read-only

There is a ZHV stop nearby: {_closest_zhv_stop_name}.

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=yes

zhv_apply

This tagrendering has no question and is thus read-only

{tag_apply(ref:IFOPT=$_ifopt,Add IFOPT to this stop,./assets/svg/addSmall.svg,_closest_osm_stop_id,)}

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=yes & ref:IFOPT!~.+

minimap_with_poi

This tagrendering has no question and is thus read-only

{minimap(18, id, _closest_zhv_stop_id):height:10rem}

This tagrendering is only visible in the popup if the following condition is met: _has_closeby_feature=yes

leftover-questions

This tagrendering has no question and is thus read-only

{questions( ,hidden)}

This tagrendering has labels ignore-docs added_by_default

lod

This tagrendering has no question and is thus read-only

{linked_data_from_website()}

This tagrendering has labels added_by_default

spacer

This tagrendering has no question and is thus read-only

Filters

id question osmTags
shelter.0 With a shelter shelter=yes
id question osmTags
bench.0 With a bench bench=yes
id question osmTags
bin.0 With a bin bin=yes
id question osmTags
tactile_paving.0 Does this stop have tactile paving? (default)
tactile_paving.1 This stop has tactile paving tactile_paving=yes
tactile_paving.2 This stop does not have tactile paving tactile_paving=no

This document is autogenerated from assets/themes/zhv/zhv.json