Skip to content

Commit

Permalink
Merge branch 'v2_dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sagara committed Apr 15, 2024
2 parents a8ef20f + 9272e4a commit 8fc4793
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

- 辞書データベースをインストールします

Expand Down
18 changes: 18 additions & 0 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "大字"
Expand Down

0 comments on commit 8fc4793

Please sign in to comment.