﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12771	Validation rules for service=*	naoliv	team	"As always, consider it as a proof of concept.
We have an idea to validate `service=*` tags:

{{{
#!mapcss
way[highway = service][service][service !~ /^(alley|drive-through|driveway|emergency_access|parking_aisle)$/],
way[railway = rail][service][service !~ /^(crossover|siding|spur|yard)$/],
way[waterway = canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
        throwWarning: tr(""wrong or unknown service type"");
}
}}}

And also warn for unspecific `service=yes` (1778 objects):
{{{
#!mapcss
*[service = yes] {
        throwWarning: tr(""unspecific value for key service"");
}
}}}


Also, I know that somewhere in JOSM there is a mechanism to fix tags with typos.
I guess it could be used to fix the wrong `service=drive_through` (910 objects in taginfo) → `service=drive-through` (37207)


There is a case where it's necessary to evaluate if a test is necessary:

749 `service=living_street` in Eurasia: http://overpass-turbo.eu/s/fMv
Most probably they should all be `highway=living_street` instead `highway=service` + `service=living_street`"	enhancement	closed	normal	16.05	Core validator		fixed	mapcss, service	
