Skip to content

Commit bfb720a

Browse files
authored
Merge pull request #74 from argyle-engineering/us-fixes
Add Route as possible single street name
2 parents c61c3e0 + 30e1efb commit bfb720a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pyap/source_US/data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str:
181181
"Highpoint",
182182
"Parkway",
183183
r"Black\ Hou?rse",
184+
r"Route",
184185
]
185186

186187
numbered_road_re = r"""[Ss][Tt][Aa][Tt][Ee]\ [Rr][Oo][Aa][Dd]\ \d{1,4}(?!\d)"""

tests/test_parser_us.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ def test_po_box_positive(input, expected):
495495
("817 S.E. 55TH", True),
496496
("2817 PETERS ROAD BAY 52", True),
497497
("1234 Big Avenue 3B", True),
498+
("15 ROUTE 9H", True),
498499
# negative assertions
499500
("6 95 34 75 COMPANY PHONE IS", False),
500501
(", 666 Hell ST PMB 29700", False),

0 commit comments

Comments
 (0)