Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-processing of address variables #17

Open
wakame1367 opened this issue Aug 17, 2020 · 0 comments
Open

Post-processing of address variables #17

wakame1367 opened this issue Aug 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@wakame1367
Copy link
Owner

wakame1367 commented Aug 17, 2020

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 wakame1367 added the enhancement New feature or request label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant