japanese-addresses
japanese-addresses copied to clipboard
Post-processing of address variables
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='市名坂')
"""