usaddress icon indicating copy to clipboard operation
usaddress copied to clipboard

Error parsing address containing building name and apartment

Open SilentChris opened this issue 9 months ago • 3 comments

I have an address similar to the following:

70 STRAWBERRY HILL AVE THE FAIRFIELD, APT 12-3B STAMFORD, CT 06902-2630

When usaddress attempts to parse, it sees THE as an IntersectionSeparator and FAIRFIELD as a StreetName which causes it to throw an error ERROR: Unable to tag this string because more than one area of the string has the same label

In this case, THE FAIRFIELD should both be tagged as BuildingName I believe?

SilentChris avatar May 09 '25 18:05 SilentChris

@SilentChris I see what you mean, yea that should definitely be a BuildingName! Do you happen to have any more examples of this kind of address that you can share? Ideally 8 - 12 examples would be great, but no worries if not.

xmedr avatar May 15 '25 13:05 xmedr

This is the only one I've run across so far - it was from a public site for looking up contractor licenses so I'm sure there are plenty of examples to be had - but might be tricky to find ones that cause this particular issue

SilentChris avatar May 15 '25 18:05 SilentChris

@SilentChris Gotcha, we'll do some searching for similar addresses and try to replicate this a few times

xmedr avatar May 15 '25 19:05 xmedr