﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22102	Add a warning if surface does not match tracktype for highway=track with tracktype=grade2 till grade5 [PATCH]	mcliquid	team	"Inspired from this issue: https://github.com/osm-fr/osmose-backend/issues/1468
And some more context here: https://github.com/streetcomplete/StreetComplete/discussions/4063

==== What steps will reproduce the problem?
1. Create a new way in JOSM.
2. Add highway=track, surface=asphalt and tracktype=grade3
3. Try to upload

==== What is the expected result?
JOSM should warn that the tracktype does not match the surface as it happens when you upload surface=sand with tracktype=grade1.

==== What happens instead?
No error / warning is shown

=== Proposed solution
Something like this:
Add
{{{way[tracktype][surface][tracktype=~/grade[2-5]/][surface!=grass_paver]!.unpaved_surface}}}
here: https://josm.openstreetmap.de/browser/josm/trunk/resources/data/validator/combinations.mapcss#L328

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-05-29 21:53:52 +0200 (Sun, 29 May 2022)
Revision:18463
Build-Date:2022-05-30 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18463 de)
}}}"	enhancement	closed	normal	22.07	Core validator	latest	fixed	template_report highway track tracktype grade surface asphalt gravel	
