[Nominatim] Municipality not in list of 'localityFields'
还没有人认领这个 Issue。
评估
调研方向
从 Nominatim.php 中的 jsonResultToLocation()(约第 209 行)开始,检查 localityFields 如何用于提供的 reverse-geocoding 结果。确认 Purmerend 示例中的 municipality 值以 locality 的形式返回,并验证对于列出的其他 locality 字段,现有行为仍然正确。
由索引模型根据 Issue 内容生成。
描述
I came across some reverse geocoding results where Nominatim.php didn't return a 'locality'. In my opinion, this latlng query should have 'Purmerend' as its locality, as it's the municipal boundary:
https://nominatim.openstreetmap.org/ui/reverse.html?lat=52.50741&lon=4.93279&zoom=18
https://nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=6593763&class=highway
Upon debugging, I noticed that inside jsonResultToLocation(), on line 209, 'municipality' was not considered a 'locality'.
$localityFields = ['city', 'town', 'village', 'hamlet'];
Is this a matter of definition?
Adding 'municipality' fixes my issue:
$localityFields = ['city', 'town', 'village', 'hamlet', 'municipality'];
- 主要语言
- PHP
- 星标
- 4k
- 派生
- 525
- 平均合并
- 8 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
geocoder-php/Geocoder 的其他 Issue
-
question
难度 4/5 3-5 天 新手友好度 25/100
geocoder-php/Geocoder#1267 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
geocoder-php/Geocoder#1266 ·
-
难度 1/5 1 小时以内 新手友好度 38/100
geocoder-php/Geocoder#1244 · 2 条评论 · 2 个 reaction ·
-
provider
难度 4/5 3-5 天 新手友好度 30/100
geocoder-php/Geocoder#1243 ·
-
provider
难度 4/5 3-5 天 新手友好度 35/100
geocoder-php/Geocoder#1237 · 1 条评论 · 1 个 reaction ·
查看 geocoder-php/Geocoder 的全部 Issue
相似的 Issue
-
sync-en
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 3 天内回复
-
Перевод устарел
难度 1/5 1-3 小时 新手友好度 88/100
-
Form
难度 2/5 1-3 小时 新手友好度 74/100
symfony/symfony-docs#23159 ·
维护者通常 3 天内回复
-
bug component: bulk editor support
难度 2/5 1-3 小时 新手友好度 78/100
Yoast/wordpress-seo#23669 ·
维护者通常 3 天内回复