Skip to content

Commit

Permalink
Add Bay street type
Browse files Browse the repository at this point in the history
  • Loading branch information
tducret committed Sep 17, 2024
1 parent d3c0b08 commit a3212ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str:
)

# This list was taken from: https://pe.usps.com/text/pub28/28apc_002.htm
# Broadway and Lp (abbreviation for Loop) were added to the list
# Bay, Broadway and Lp (abbreviation for Loop) were added to the list
street_type_list = [
"Allee",
"Alley",
Expand All @@ -230,6 +230,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str:
"Avenue",
"Avn",
"Avnue",
"Bay",
"Bayoo",
"Bayou",
"Bch",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parser_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def test_post_direction(input, expected):
("Interstate 35", True),
("I- 35", True),
("I-35 Service Road", True),
("BAY", True),
# negative assertions
# TODO
],
Expand Down Expand Up @@ -601,6 +602,7 @@ def test_full_street_positive(input, expected):
("2006 Broadway Ave Suite 2A, PO Drawer J, Great Bend, KS 67530", True),
("135 Pinelawn Road STE 130 S, Melville, NY 11747", True),
("1800 M STREET NW SUITE 375 N, WASHINGTON, DC 20036", True),
("10 INDIAN BAY, ALAMEDA CA 94502", True),
# negative assertions
("ONE HEALING CENTER LLC, 16444", False),
("85 STEEL REGULAR SHAFT - NE", False),
Expand Down

0 comments on commit a3212ef

Please sign in to comment.