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

Support 鎌ケ谷市 search case #12

Closed
sanak opened this issue Jun 3, 2024 · 0 comments
Closed

Support 鎌ケ谷市 search case #12

sanak opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@sanak
Copy link
Collaborator

sanak commented Jun 3, 2024

From 鎌ケ谷市 Wiki page (https://ja.wikipedia.org/wiki/%E9%8E%8C%E3%82%B1%E8%B0%B7%E5%B8%82), both 鎌ケ谷市 and 鎌ヶ谷市 seem to be correct as city name.

地名表記

鎌ヶ谷」と「鎌ケ谷」の両方の表記があるが、これは一般の地名表記は小文字の「ヶ」(鎌谷)を使うのに対し、新聞・出版関係の地名表記は大文字の「ケ」(鎌ケ谷)を使う。

市役所では後者を採用しており、条例で「ケ」は大きく書くと定められ、日本郵政や千葉県庁もそれに倣っている。ただし2007年(平成19年)10月1日まで鎌ケ谷郵便局は「鎌ヶ谷郵便局」と称していた。

But, pgGeocoder supports only 鎌ヶ谷市 case,

addresses=# SELECT * FROM geocoder('鎌ケ谷市');
 code |  x   |  y   | address | todofuken | shikuchoson | ooaza | chiban | go 
------+------+------+---------+-----------+-------------+-------+--------+----
  -99 | -999 | -999 | なし    |           |             |       |        | 
(1 row)

addresses=# SELECT * FROM geocoder('鎌ヶ谷市');
 code |     x      |     y     |    address     | todofuken | shikuchoson | ooaza | chiban | go 
------+------------+-----------+----------------+-----------+-------------+-------+--------+----
    4 | 140.000736 | 35.776765 | 千葉県鎌ヶ谷市 | 千葉県    | 鎌ヶ谷市    |       |        | 
(1 row)

because original ISJ data has 鎌ヶ谷市.

addresses=# SELECT * FROM address_s WHERE todofuken = '千葉県' AND shikuchoson = '鎌ヶ谷市';
 todofuken | shikuchoson |    lat    |    lon     | code  |                        geog                        
-----------+-------------+-----------+------------+-------+----------------------------------------------------
 千葉県    | 鎌ヶ谷市    | 35.776765 | 140.000736 | 12224 | 0101000020E6100000C1FD800706806140B6D617096DE34140
(1 row)

It would be nice to support 鎌ケ谷市 case.

@mbasa mbasa self-assigned this Jun 3, 2024
@mbasa mbasa closed this as completed in bf9db77 Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants