street-address icon indicating copy to clipboard operation
street-address copied to clipboard

Incorrect behavior for guessing suite_num

Open artemijan opened this issue 6 years ago • 2 comments

Hello, there is a case for this address '268 S Beverly Dr. #9876' This address is parsed and suite_num is None. I've found the reason Take a look: elif len(word_lw) > 0 and word_lw[0] == '#' and res['suite_num'] is not None should be without "not" statement elif len(word_lw) > 0 and word_lw[0] == '#' and res['suite_num'] is None What do you think?

artemijan avatar Jan 14 '19 13:01 artemijan

Yeah, you are right. It's better to test that both suite type and name are None.

Can you create a pull request? Thanks.

pnpnpn avatar Jan 14 '19 14:01 pnpnpn

Yes, I will try to do it today

artemijan avatar Jan 15 '19 09:01 artemijan