Opened 2 years ago

Last modified 2 years ago

#23194 closed enhancement

[patch] Add disused:route to validator — at Version 2

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: disused route Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Validate a disused:route relation. e.g. relation/9301679

What is the expected result?

No warning.

What happens instead?

A warning saying it's missing the route tag.

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-09-21 20:54:28 +0200 (Thu, 21 Sep 2023)
Build-Date:2023-09-22 01:30:58
Revision:18841
Relative:URL: ^/trunk
  • resources/data/validator/relation.mapcss

     
    1212relation[type=destination_sign][!destination],
    1313relation[type=enforcement][!enforcement],
    1414relation[type=public_transport][!public_transport],
    15 relation[type=route][!route],
     15relation[type=route][!route][!disused:route],
    1616relation[type=route_master][!route_master],
    1717relation[type=waterway][!waterway] {
    1818  throwWarning: tr("{0} relation without {0} tag", "{1.key}");

Change History (2)

comment:1 by GerdP, 2 years ago

This is confusing. Your example r5189560 also has a route=train tag.

comment:2 by gaben, 2 years ago

Description: modified (diff)

:D nice catch and also thank you!

Note: See TracTickets for help on using tickets.