Updated scripts and data to decency

This commit is contained in:
2025-06-29 11:16:59 -07:00
parent a1521f4a47
commit db30603068
5 changed files with 7 additions and 96 deletions

View File

@@ -321,7 +321,9 @@ class RoadComparator:
elif key == 'SpeedLimit':
properties['maxspeed'] = f"{value} mph" if value is not None else None
elif key == 'RoadClass':
if value.startswith('PRIMARY'):
if value is None:
properties['highway'] = 'residential'
elif value.startswith('PRIMARY'):
properties['highway'] = 'trunk'
elif value.startswith('MAJOR'):
properties['highway'] = 'primary'
@@ -431,7 +433,6 @@ class RoadComparator:
if field in segment and pd.notna(segment[field]):
road_name = str(segment[field])
break
if road_name not in removed_by_road:
removed_by_road[road_name] = []
removed_by_road[road_name].append(length_feet)