diff --git a/pyap/source_US/data.py b/pyap/source_US/data.py index ee5b33a..5eecd33 100644 --- a/pyap/source_US/data.py +++ b/pyap/source_US/data.py @@ -907,6 +907,7 @@ def numbered_or_typeless_street_name(idx: str) -> str: street_type_leading_list = [ "Camino", "El\ Camino", + "Via", "Avenue", "Blvd", "Ave", diff --git a/tests/test_parser.py b/tests/test_parser.py index f9cb5e4..e7da9e8 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -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", { diff --git a/tests/test_parser_us.py b/tests/test_parser_us.py index 36e7f84..975bb61 100644 --- a/tests/test_parser_us.py +++ b/tests/test_parser_us.py @@ -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), ], @@ -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),