Skip to content

Commit

Permalink
Add fix message for route highway mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam committed Dec 27, 2023
1 parent 0043b50 commit a4fa8a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion analysers/analyser_osmosis_relation_route_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ def __init__(self, config, logger = None):
}
for route_type, access in self.map.items():
self.classs_change[access['class']] = self.def_class(item = 3240, level = 2, tags = ['relation', 'routing'],
title = T_('Way access mismatch relation route={0}', route_type))
title = T_('Way access mismatch relation route={0}', route_type),
fix = T_('''Check if the route should indeed use this highway.
If not, move the route so that it follows the designated paths.
This could require shifting the route to separately drawn parallel highways.
If you are sure that the route should follow this way, consider adding `{0}=yes`.''', access['access_tag']))

def callback10(self, clazz):
return lambda res: {'class':clazz, 'data':[self.way_full, self.relation_full, self.positionAsText] }
Expand Down

0 comments on commit a4fa8a5

Please sign in to comment.