Skip to content

Commit

Permalink
Support promenade as street type
Browse files Browse the repository at this point in the history
  • Loading branch information
lmelninkas committed Apr 26, 2024
1 parent ea976bc commit 96de885
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str:
"Pr",
"Prairie",
"Prk",
"Promenade",
"Prr",
"Prt",
"Prts",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_parser_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ def test_full_street_positive(input, expected):
"input,expected",
[
# positive assertions
("1111 3rd Street Promenade, Santa Monica, CA 90000", True),
("P.O. BOX 10323 PH (205) 595-3511\nBIRMINGHAM, AL 35202", True),
("2222 CARPENTER RD SUITE 1W\nANN ARBOR, MI, US, 48000", True),
("P.O. BOX 11111 PH (222) 555-3333\nBIRMINGHAM, AL 35000", True),
("25 HARBOR PARK DRIVE\nPORT WASHINGTON\nNY 11050", True),
("222 W. Las Colinas Blvd\nSuite 900N\nIrving, Texas, USA 75039-5421", True),
("1100 VIRGINIA DR\nFORT WASHINGTON, PA, 19034", True),
("3602 HIGHPOINT\nSAN ANTONIO TX78217", True),
("8025 BLACK HORSE\nSTE 300\nPLEASANTVILLE NJ 08232", True),
Expand Down

0 comments on commit 96de885

Please sign in to comment.