street-address
street-address copied to clipboard
Incorrect behavior for guessing suite_num
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?
Yeah, you are right. It's better to test that both suite type and name are None.
Can you create a pull request? Thanks.
Yes, I will try to do it today