﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21801	[patch] Add railway junction check for missing switches and crossings	gaben	team	"If there is a Y connection on a railway, there is usually a [osmwiki:Tag:railway=switch] or [osmwiki:Tag:railway=railway_crossing]. The following lines will issue a warning if neither is on the junction node.

{{{#!mapcss
way[/railway$/] >[index=1] node[/railway$/!~/switch|railway_crossing/]:connection,
way[/railway$/] >[index=-1] node[/railway$/!~/switch|railway_crossing/]:connection {
	set .railway_first_last_connection;
}

way[/railway$/] >[index!=1][index!=-1] node.railway_first_last_connection {
	group: tr(""missing tag"");
	throwWarning: tr(""use one of railway features: switch, railway_crossing"");
}
}}}

It's only a partial solution as I couldn't think out a rule which works when the railway ways split at the Y junction. I wanted this to be entirely MapCSS for other services benefit, like osmose."	enhancement	closed	normal	24.08	Core validator		fixed	railway switch railway_crossing crossing	
