Opened 5 years ago

Last modified 5 years ago

#19604 closed enhancement

Validator: warn when name equals alt_name — at Version 1

Reported by: Famlam Owned by: team
Priority: normal Milestone: 20.08
Component: Core validator Version:
Keywords: name alt_name Cc:

Description (last modified by Famlam)

I stumbled upon this way (and some nearby ways with the same name). I cannot tell whether it's a common issue worldwide, or something very rare (and thus not worth adding), but perhaps the validator can catch cases where the value of name equals the value of alt_name?

Here it was introduced due to an alternative spelling (Leijenseweg rather than Leyenseweg) being used on traffic signs, which was reverted to Leyenseweg a few months later by someone in a commit called "Validatortest".

/* 19604 */
way[name][alt_name][name=*alt_name] {
  throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
  group: tr("suspicious tag combination");
  fixRemove: "alt_name";
}

Change History (1)

comment:1 by Famlam, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.