Closed lionel-nj closed 1 year ago
A simple solution may be to only check for this rule if route_short_name
is >= 2 or 3 characters.
@barbeau @isabelle-dr I am looking at this issue. Is the preferred solution what @aababilov mentioned here:
check that long name does not start from the short name followed by ' ', '-' or '('.
Seems reasonable to me
Sounds good. Hello @barbeau 👋😊 This issue was initially opened to replace route_short_and_long_name_equal, and the reference is in the GTFS Best Practices, not the spec.
Linking to @julianharty's question on the associated PR , should we add any more explanation to the documentation about how this rule works?
Also are the characters ' ', '-' and '(' as mentioned here sufficient, or are there other characters – like ':' or ')' – that we should consider in this PR?
Is your feature request related to a problem? Please describe. File
routes.txt
requires to check ifroute_long_name
containsroute_short_name
.However, depending on the number of characters of
route_short_name
,route_short_name
could be contained inroute_long_name
. For example:route_short_name
isC
, androute_long_name
isCxxxxxxxxxxx
. Here,route_short_name
is just a character of the string definingroute_long_name
. Yet, with our current implementation, a notice would be generated although it should not.Describe the solution you'd like Implement a regex or an algorithm using a threshold to define whether
route_long_name
containsroute_short_name
.