-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from t-sagara/v2_dev
Merge v2_dev
- Loading branch information
Showing
7 changed files
with
72 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,44 @@ | ||
<!doctype html> | ||
<html lang="ja"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width-device-width, initial-scale=1.0"> | ||
<title>Jageocoder Demonstration</title> | ||
<style type="text/css"> | ||
body { | ||
margin: 1em; | ||
} | ||
input#query { | ||
width: 50%; | ||
} | ||
textarea#result_text { | ||
width: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1> | ||
<a href="https://github.com/t-sagara/jageocoder/blob/main/README_ja.md">Jageocoder</a> | ||
のデモンストレーション</h1> | ||
<form action="{{ url_for('search') }}" method="GET"> | ||
<input id="query" value="{{ q }}" name="q" placeholder="検索したい住所を入力" /> | ||
<input id="area" value="{{ area }}" name="area" | ||
placeholder="検索対象(都道府県・市区町村)" /> | ||
<input type="submit" value="検索" /><br /> | ||
小字の省略: | ||
<input type="radio" name="skip_aza" value="auto" | ||
{% if skip_aza == 'auto' %}checked="checked"{% endif %} | ||
/>自動判定 | ||
<input type="radio" name="skip_aza" value="on" | ||
{% if skip_aza == 'on' %}checked="checked"{% endif %} | ||
/>省略する | ||
<input type="radio" name="skip_aza" value="off" | ||
{% if skip_aza == 'off' %}checked="checked"{% endif %} | ||
/>省略しない | ||
</form> | ||
{% extends 'base.html' %} | ||
|
||
<p><a href="{{ url_for('index', q=q, skip_aza=skip_aza) }}"> | ||
住所の例に戻る</a></p> | ||
{% block title %}ノード一覧 | Jageocoder{% endblock %} | ||
|
||
<h2>アドレス・ベース・レジストリ マスター属性</h2> | ||
{% block content %} | ||
{% include "addressform.html" %} | ||
|
||
{% if aza is none %} | ||
(条件に該当するレコードが見つかりません) | ||
{% else %} | ||
<ul id="attributes"> | ||
<li>表記 | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>レベル</th><th>漢字</th><th>カナ</th><th>英字</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for name in names %} | ||
<tr> | ||
<td align="right">{{ name[0] }}</td> | ||
<td>{{ name[1] }}</td> | ||
<td>{{ name[2] }}</td> | ||
<td>{{ name[3] }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<li>字コード: <a href="{{ url_for('search_aza_id', aza_id=aza.code) }}"> | ||
{{ aza.code }}</a></li> | ||
<li>町字区分コード: {{ aza.aza_class }} | ||
(1:大字・町, 2:丁目, 3:小字)</li> | ||
<li>住居表示フラグ: {{ aza.is_jukyo }} | ||
(True: 住居表示, False: 非住居表示)</li> | ||
<li>起番フラグ: {{ aza.start_count_type }} | ||
(1:起番, 2:非起番, 0:登記情報に存在しない)</li> | ||
<li>郵便番号: {{ aza.postcode }}</li> | ||
</ul> | ||
{% endif %} | ||
<h1>アドレス・ベース・レジストリ マスター属性</h1> | ||
|
||
</body> | ||
</html> | ||
{% if aza is none %} | ||
(条件に該当するレコードが見つかりません) | ||
{% else %} | ||
<ul id="attributes"> | ||
<li>表記 | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>レベル</th><th>漢字</th><th>カナ</th><th>英字</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for name in names %} | ||
<tr> | ||
<td align="right">{{ name[0] }}</td> | ||
<td>{{ name[1] }}</td> | ||
<td>{{ name[2] }}</td> | ||
<td>{{ name[3] }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<li>字コード: <a href="{{ url_for('search_aza_id', aza_id=aza.code) }}"> | ||
{{ aza.code }}</a></li> | ||
<li>町字区分コード: {{ aza.aza_class }} | ||
(1:大字・町, 2:丁目, 3:小字)</li> | ||
<li>住居表示フラグ: {{ aza.is_jukyo }} | ||
(True: 住居表示, False: 非住居表示)</li> | ||
<li>起番フラグ: {{ aza.start_count_type }} | ||
(1:起番, 2:非起番, 0:登記情報に存在しない)</li> | ||
<li>郵便番号: {{ aza.postcode }}</li> | ||
</ul> | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
>>> jageocoder.searchNode('<Japanese-address>') | ||
""" | ||
|
||
__version__ = '2.0.2rc1' # The package version | ||
__version__ = '2.0.2' # The package version | ||
__dictionary_version__ = '20230405' # Compatible dictionary version | ||
__author__ = 'Takeshi Sagara <[email protected]>' | ||
|
||
|
@@ -34,7 +34,6 @@ | |
'download_dictionary', | ||
'install_dictionary', | ||
'uninstall_dictionary', | ||
'migrate_dictionary', | ||
'create_trie_index', | ||
'search', | ||
'searchNode', | ||
|
@@ -48,6 +47,6 @@ | |
from jageocoder.module import init, free, is_initialized,\ | ||
get_db_dir, set_search_config, get_search_config,\ | ||
get_module_tree, download_dictionary, install_dictionary,\ | ||
uninstall_dictionary, migrate_dictionary, create_trie_index,\ | ||
uninstall_dictionary, create_trie_index,\ | ||
search, searchNode, reverse, version, dictionary_version,\ | ||
installed_dictionary_version, installed_dictionary_readme # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "jageocoder" | ||
version = "2.0.2rc1" | ||
version = "2.0.2" | ||
description = "A Japanese-address geocoder for Python." | ||
authors = ["Takeshi Sagara <[email protected]>"] | ||
repository = "https://github.com/t-sagara/jageocoder/" | ||
|
@@ -27,7 +27,7 @@ docopt = "^0.6.2" | |
deprecated = "^1.2.13" | ||
Werkzeug = ">=2.2.3" | ||
pycapnp = "^1.3.0" | ||
portabletab = ">=0.3.2" | ||
portabletab = ">=0.3.3" | ||
tqdm = "^4.00.0" | ||
rtree = "^1.0.0" | ||
geographiclib = "^2.0" | ||
|