parse-address
parse-address copied to clipboard
Issue when it find 2 possible street type
When the script find a address with 2 possible street type, it grabs the first one as street type and not the last. Blvd should be considered the street type, and not Beach, but it is now ignored and left as part of the City name
760 South Beach Blvd La Habra, CA 90631-6416
the result is
{ "number": "760", "street": "South", "type": "Bch", "city": "Blvd La Habra", "state": "CA", "zip": "90631", "plus4": "6416" }
I am running into this issue as well.
Not sure if this is possible in your particular use case but adding a comma before the city seems give the correct results
760 South Beach Blvd, La Habra, CA 90631-6416