hassansin / parse-address

US Street Address Parser
http://hassansin.github.io/parse-address/
Other
157 stars 81 forks source link

Issue when it find 2 possible street type #19

Open griiettner opened 6 years ago

griiettner commented 6 years ago

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" }

cody-lettau commented 5 years ago

I am running into this issue as well.

varadara commented 5 years ago

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