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

建物名との分離 #52

Open
miya0001 opened this issue Mar 21, 2021 · 3 comments
Open

建物名との分離 #52

miya0001 opened this issue Mar 21, 2021 · 3 comments
Assignees
Labels
Priority: Low The issue has low priority

Comments

@miya0001
Copy link
Member

例えば 「東京都千代田区永田町1丁目7-1 マンションジオロニア」 のようなケース

@miya0001 miya0001 added this to Issues in 不動産共通ID β Mar 21, 2021
naogify added a commit that referenced this issue Mar 23, 2021
@naogify naogify self-assigned this Mar 23, 2021
@naogify naogify moved this from Issues to In Progress in 不動産共通ID β Mar 23, 2021
@naogify naogify moved this from In Progress to Issues in 不動産共通ID β Mar 25, 2021
@naogify naogify moved this from Issues to In Progress in 不動産共通ID β Mar 25, 2021
@naogify
Copy link
Member

naogify commented Mar 25, 2021

実装方法が良いかPRを送って確認

@miya0001
Copy link
Member Author

@naogify
ちょっとこれ難しそうなので、住所と建物名はわけてリクエストをもらうことを前提にしましょう。

/?addr=<住所>&building=<建物名>

みたいな感じ。

@naogify naogify moved this from In Progress to Issues in 不動産共通ID β Mar 29, 2021
@naogify naogify moved this from Issues to In Progress in 不動産共通ID β Mar 31, 2021
@naogify naogify moved this from In Progress to Issues in 不動産共通ID β Mar 31, 2021
@naogify naogify added the Priority: Low The issue has low priority label Apr 5, 2021
@miya0001
Copy link
Member Author

miya0001 commented May 2, 2021

正規化レベルが3の場合は、以下のように判別できる気がする。

  • addr の値の一番はじめに出てくるスペース以降の文字列
  • addr^.*[0-9]+\-([^0-9]+)?[0-9]+ にマッチする部分以降の文字列(123-123 のようなパターンの後)
  • addr の中の4桁以上の連続した数字以降の文字列(地番住所は多くの場合末尾の数字が4桁)

建物名が分離できないことよりも、住所の部分を誤って建物名として分離してしまうほうがまずい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low The issue has low priority
Projects
Development

No branches or pull requests

3 participants
@miya0001 @naogify and others