Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/hiking.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from config.common import *

cai_level = { 'T' : '1', 'E' : '2', 'EE' : '3' }

def filter_route_tags(outtags, tags):
""" Additional tag filtering specifically for hiking routes.
Expand Down Expand Up @@ -48,6 +47,7 @@ def filter_route_tags(outtags, tags):
outtags.network = 'AL4'

# Italian hiking network (see #266), also uses Swiss system
cai_level = { 'T' : '1', 'E' : '2', 'EE' : '3' }
if outtags.country == 'it' and network == 'lwn' \
and tags.get('osmc:symbol', '').startswith('red') and 'cai_scale' in tags:
outtags.network = 'AL' + cai_level.get(tags['cai_scale'], '4')
Expand Down