japanese-addresses icon indicating copy to clipboard operation
japanese-addresses copied to clipboard

Post-processing of address variables

Open wakame1367 opened this issue 4 years ago • 0 comments

The address variable is not returned in the current process. https://github.com/wakamezake/japanese-addresses/blob/dbb1f51c7878059c3a85b5ae0f9162f4b2c22285/japanese_addresses/init.py#L126-L129

In the following cases, the highlighted part corresponds to the address variable. 宮城県仙台市泉区市名坂字東裏97-1 -> 宮城県/仙台市泉区/市名坂/字東裏97-1

from japanese_addresses import separate_address

parsed_address = separate_address('宮城県仙台市泉区市名坂字東裏97-1')

print(parsed_address)
"""
ParsedAddress(prefecture='宮城県', city='仙台市泉区', street='市名坂')
"""

wakame1367 avatar Aug 17 '20 06:08 wakame1367