Commit de6aeab8 authored by Akshat Tandon's avatar Akshat Tandon

Enable tag-mapping of lower priority roads.

They had been commented out previously so as to keep only primary/important roads in lower zoom levels.
parent 6bc32db9
...@@ -119,13 +119,13 @@ def purpose(data): ...@@ -119,13 +119,13 @@ def purpose(data):
def road_map(data): def road_map(data):
keys = { keys = {
#'Ferry Route': [('route','ferry')], 'Ferry Route': [('route','ferry')],
'Major Highway': [('highway','motorway')], 'Major Highway': [('highway','motorway')],
'Beltway': [('highway','primary')], 'Beltway': [('highway','primary')],
#'Track': [('highway','tertiary')], 'Track': [('highway','tertiary')],
#'Unknown': [('highway','unclassified')], 'Unknown': [('highway','unclassified')],
#'Secondary Highway': [('highway','trunk')], 'Secondary Highway': [('highway','trunk')],
#'Bypass': [('highway','secondary')], 'Bypass': [('highway','secondary')],
'Road': [('highway','primary')] 'Road': [('highway','primary')]
} }
if 'type' in data: if 'type' in data:
...@@ -144,17 +144,7 @@ def city_map(data): ...@@ -144,17 +144,7 @@ def city_map(data):
country = data['adm0name'] country = data['adm0name']
temp = [('is_in:country', country), ('capital', capital), ('population', population), ('place', 'city') ] temp = [('is_in:country', country), ('capital', capital), ('population', population), ('place', 'city') ]
return temp return temp
'''
def airport_map(data):
global id_counter, file_counter, counter, file_name, open_file, namespace
wid = id_counter - 1
print("<way id='-%s'>" % wid, end = '\n', file = open_file)
print(" <nd ref='-%s' />" % i, end = '\n', file = open_file)
if geom_name == 'POLYGON':
print(" <nd ref='-%s' />" % ids[0], end = '\n', file = open_file)
write_tags(f)
print("</way>" , end = '\n', file = open_file)
'''
def mountain_map(data): def mountain_map(data):
elevation = 0 elevation = 0
if 'elevation' in data: if 'elevation' in data:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment