From a2a1b22e0511a7c7bd484c2cf994eeb2d01f0652 Mon Sep 17 00:00:00 2001 From: Hiromasa Ihara Date: Thu, 25 Jan 2024 14:11:24 +0900 Subject: [PATCH 1/2] fix: update dictionary link in readme to avoid 404 error --- README.md | 2 +- README_ja.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3945c05..dbb86e4 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ All other required packages will be installed automatically. ```sh pip install jageocoder -wget https://www.info-proto.com/static/jageocoder/latest/v2/jukyo_all_v20.zip +wget https://www.info-proto.com/static/jageocoder/latest/v2/jukyo_all_v21.zip jageocoder install-dictionary jukyo_all_v20.zip ``` diff --git a/README_ja.md b/README_ja.md index 1f367f8..8c904e1 100644 --- a/README_ja.md +++ b/README_ja.md @@ -36,7 +36,7 @@ Python 3.7 以降が必要です。 [ここから](https://www.info-proto.com/static/jageocoder/latest/v2/) ダウンロードします - wget https://www.info-proto.com/static/jageocoder/latest/v2/jukyo_all_v20.zip + wget https://www.info-proto.com/static/jageocoder/latest/v2/jukyo_all_v21.zip - 辞書データベースをインストールします From 9272e4af8e1f532124acad6505c1be8e1d81fde1 Mon Sep 17 00:00:00 2001 From: Takeshi Sagara Date: Mon, 15 Apr 2024 00:39:06 +0000 Subject: [PATCH 2/2] Add tests for Nagano-shi. --- tests/test_search.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_search.py b/tests/test_search.py index 6d2a2c8..e89c520 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -117,6 +117,24 @@ def test_kyoto_yamatooji(self): fullname=["京都府", "京都市", "東山区", "大和大路", "一丁目", "535番地"]) + def test_nagano(self): + """ + Tests of customary addresses in Nagano City. + """ + self._check( + query="長野市新田町1137-5", + match="長野市新田町1137-", + level=7, + fullname=["長野県", "長野市", "大字南長野", "新田町", "1137番地"] + ) + + self._check( + query="長野県長野市七瀬中町161番地1", + match="長野県長野市七瀬中町161番地1", + level=8, + fullname=["長野県", "長野市", "大字鶴賀", "161番地", "1"] + ) + def test_oaza(self): """ Test notations with and without "大字"