Skip to content

Commit f097493

Browse files
committed
Correctly making route dec methods static
1 parent a11466a commit f097493

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wzdx/tools/cdot_geospatial_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def get_route_between_measures(
343343

344344
return linestring
345345

346+
@staticmethod
346347
def is_route_dec(startMeasure: float, endMeasure: float) -> bool:
347348
"""Check if the route is a reversed dual carriageway (mileposts are decreasing)
348349
@@ -355,7 +356,8 @@ def is_route_dec(startMeasure: float, endMeasure: float) -> bool:
355356
"""
356357
return endMeasure < startMeasure
357358

358-
def is_route_id_dec(self, route_id: str) -> bool:
359+
@staticmethod
360+
def is_route_id_dec(route_id: str) -> bool:
359361
"""Check if the route is a reversed dual carriageway
360362
Args:
361363
route_id (str): Route ID

0 commit comments

Comments
 (0)