Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add questions for railway crossings #195

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Add questions for railway crossings #195

merged 4 commits into from
Aug 11, 2023

Conversation

wielandb
Copy link
Contributor

@wielandb wielandb commented Jul 27, 2023

This PR adds questions that will be asked on railway and tram crossings.

The following questions are added:

  • crossing:barrier=yes/no
  • crossing:barrier=*
  • crossing:light=yes/no
  • crossing:whistle=yes/no
  • tactile_paving=yes/no

The follwing questions are modified:

  • crossing:bell

This is the schema after which I modeled the dependencies:

bahnuebergaenge_schema

Currently still todo:

  • Add pictures for the answer options for crossing:barrier=*-question
  • Add explanatory pictures for crossing:light=yes/no-question
  • Add a better picture for tactile_paving=yes/no-question(?)
  • Add a picture of a "whistle-sign" from germany as explanatory picture for crossing:whistle=yes/no-question

assets/datasets/question_catalog.json Outdated Show resolved Hide resolved
Comment on lines 2997 to 3003
"answer": {
"type": "List",
"input": [
{
"name": "Eine Schranke",
"image": "",
"osm_tags": {
"crossing:barrier": "full"
}
},
{
"name": "Eine Schikane",
"image": "",
"osm_tags": {
"crossing:chicane": "yes"
}
},
{
"name": "Ein Tor",
"image": "",
"osm_tags": {
"crossing:barrier": "gate"
}
},
{
"name": "Eine Kette",
"image": "",
"osm_tags": {
"crossing:barrier": "chain"
}
}
]
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the "Ein", "Eine" etc. here.

Comment on lines 3032 to 3062
"osm_tags": {
"railway": "crossing",
"crossing:barrier": "yes",
"crossing:chicane": false
},
"osm_element": ["Node", "OpenWay"]
},
{
"osm_tags": {
"railway": "tram_crossing",
"crossing:barrier": "yes",
"crossing:chicane": false
},
"osm_element": ["Node", "OpenWay"]
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"railway": "crossing" is supposed to be tagged on nodes only so the condition can be tightened.

Comment on lines 2956 to 3032
"name": "Übergangs-Barriere",
"text": "Gibt es an diesem Bahnübergang eine Barriere?",
"description": "Eine Barriere ist alles, was den Übergang für Fußgänger verhindern oder erschweren soll. Dies kann eine Schranke, eine Schikane, eine Kette oder ein Tor sein."
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As much as I like having this bool question upfront, I feel like we cannot use this if we combine crossing:barrier and crossing:chicane in one question later on. Because in the case where there is only a chicane we would tag:

"crossing:barrier": "yes"
"crossing:chicane": "yes"

Comment on lines 3050 to 3097
"question": {
"name": "Bahnübergangs-Bodenindikatoren",
"text": "Gibt es Bodenindikatoren an diesem Bahnübergang?",
"description": "Bodenindikatoren sind Bodenelemente im öffentlichen Raum zur Information, Orientierung, Leitung und Warnung sehbehinderter Menschen. Sie stehen in einem hohen taktilen, visuellen und gegebenenfalls akustischen Kontrast zum angrenzenden Bodenbelag.",
"image": [
"assets/images/questions/tactile_paving_on_kerb.jpg"
]
},
"answer": {
"type": "Bool",
"input": [
{
"osm_tags": {
"tactile_paving": "yes"
}
},
{
"osm_tags": {
"tactile_paving": "no"
}
}
]
},
"conditions": [
{
"osm_tags": {
"railway": "crossing",
"tactile_paving": false
},
"osm_element": ["Node", "OpenWay"]
},
{
"osm_tags": {
"railway": "tram_crossing",
"tactile_paving": false
},
"osm_element": ["Node", "OpenWay"]
}
]
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't belong to this PR. If not already covered it should be moved to this PR: https://github.com/OPENER-next/OpenStop/pull/194/files

Comment on lines 3040 to 3045
"osm_tags": {
"railway": "tram_crossing",
"crossing:barrier": "yes",
"crossing:chicane": false
},
"osm_element": ["Node", "OpenWay"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do tram crossings with "crossing:barrier" exist in real life?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least 2 examples exist: https://overpass-turbo.eu/s/1y8F

Comment on lines 3116 to 3127
"osm_tags": {
"railway": "crossing",
"crossing:barrier": "no",
"crossing:light": false
},
"osm_element": ["Node", "OpenWay"]
},
{
"osm_tags": {
"railway": "tram_crossing",
"crossing:barrier": "no",
"crossing:light": false
},
"osm_element": ["Node", "OpenWay"]
}
Copy link
Member

@Robbendebiene Robbendebiene Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we really wan't to ask the same questions for trams and trains, then these conditons can generally be merged:


        {
            "osm_tags": {
               "railway": ["crossing", "tram_crossing"]
               "crossing:barrier": "no",
               "crossing:light": false
            },
            "osm_element": "Node"
         }

Check other questions as well for this.

assets/datasets/question_catalog.json Show resolved Hide resolved
Comment on lines 3001 to 3002
"name": "Eine Schranke",
"image": "",
"osm_tags": {
"crossing:barrier": "full"
}
},
{
"name": "Eine Schikane",
"image": "",
"osm_tags": {
"crossing:chicane": "yes"
}
},
{
"name": "Ein Tor",
"image": "",
"osm_tags": {
"crossing:barrier": "gate"
}
},
{
"name": "Eine Kette",
"image": "",
"osm_tags": {
"crossing:barrier": "chain"
}
}
]
Copy link
Member

@7h30n3 7h30n3 Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the indefinite article.

Comment on lines 3158 to 3166
"crossing:barrier": "no",
"crossing:bell": false
},
"osm_element": "Node"
},
{
"osm_tags": {
"railway": "crossing",
"crossing:barrier": "no",
Copy link
Member

@Robbendebiene Robbendebiene Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"crossing:barrier": ["no", false]

"text": "Gibt es ein akustisches Warnsignal bei Durchfahrt der Straßenbahn?",
"description": "Das Warnsignal ertönt durch ein stationären Signalgeber. Das Klingeln durch Triebfahrzeugführer gehört nicht dazu."
"name": "Übergangs-Barriere",
"text": "Gibt es an diesem Bahnübergang eine Barriere?",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always move the import key word at the start of the question, e.g.:
"Gibt es eine Barriere an diesem Bahnübergang?

"description": "Das Warnsignal ertönt durch ein stationären Signalgeber. Das Klingeln durch Triebfahrzeugführer gehört nicht dazu."
"name": "Übergangs-Barriere",
"text": "Gibt es an diesem Bahnübergang eine Barriere?",
"description": "Eine Barriere ist alles, was den Übergang für Fußgänger verhindern oder erschweren soll. Dies kann eine Schranke, eine Schikane, eine Kette oder ein Tor sein."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with: "Eine Barriere an Bahnübergängen dient dazu, die Überquerrung im Fall einer Zugdurchfahrt zu verhindern oder zu erschweren im Sinne der erhöhten Aufmerksamkeit."

},
{
"question": {
"name": "Übergangs-Licht",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep consistent with the naming. Stick with "Bahnübergangs-..."

{
"osm_tags": {
"railway": "crossing",
"crossing:barrier": "no",
"crossing:barrier": ["yes", "full", "gate"],
Copy link
Member

@7h30n3 7h30n3 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not half and double_half as value?

@Robbendebiene Robbendebiene marked this pull request as ready for review August 9, 2023 13:45
@7h30n3 7h30n3 merged commit 6de136f into OPENER-next:master Aug 11, 2023
3 checks passed
yulieth9109 pushed a commit to yulieth9109/OpenStop that referenced this pull request Aug 31, 2023
Co-authored-by: René Apitzsch <[email protected]>
Co-authored-by: Robbendebiene <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants