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 - 辞書データベースをインストールします 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 "大字"