Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def numbered_or_typeless_street_name(idx: str) -> str:
street_type_leading_list = [
"Camino",
"El\ Camino",
"Via",
"Avenue",
"Blvd",
"Ave",
Expand Down
12 changes: 12 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,18 @@ def test_combine_results():
"line2": "Ste. 400",
},
),
(
"742 Via Fontana Riverside CA 92501",
{
"street_number": "742",
"street_type": "Via",
"street_name": "Fontana",
"city": "Riverside",
"region1": "CA",
"postal_code": "92501",
"line1": "742 Via Fontana",
},
),
(
"2006 Broadway Ave Suite 2A, PO Drawer J, Great Bend, KS 67530",
{
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 @@ -259,6 +259,7 @@ def test_street_type(input, expected):
("ED DR", True),
("El Camino Real", True),
("La Rue", True),
("Via Fontana", True),
# negative assertions
("Camino Del Toro Loco", False),
],
Expand Down Expand Up @@ -561,6 +562,7 @@ def test_full_street_positive(input, expected):
("696 BEAL PKWY NW\nFT WALTON BCH FL 32547", True),
("2633 Camino Ramon Ste. 400 San Ramon, CA 94583-2176", True),
("2951 El Camino Real Palo Alto, CA 94306", True),
("742 Via Fontana\nRiverside CA 92501", True),
("800 W EL CAMINO REAL\n350 STE *\nMOUNTAIN VIEW, CA 94040", True),
("3821 ED DR, RALEIGH, NC 27612", True),
("213 WEST 35TH STREET SUITE, 400, NEW YORK, NY", True),
Expand Down
Loading