OpenStreetMap 로고 OpenStreetMap

이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2012년 9월 11일 02:55Peter Dobratz님의 의견

Great! Thanks for working on that.

One thing that I’ve recently learned about boundary relations is that the Nominatim search engine uses wikipedia links to pull in additional information to build its search index. Also, at some point in the last few years, the format for OSM wikipedia tags has changed. On the relation, the tag should be something like:

wikipedia=en:Haverhill, Massachusetts

where en is for english and the text following the colon is the actual wikipedia title of the page (not the URL encoded form like Haverhill,_Massachusetts)

2012년 9월 11일 05:53fiveisalive님의 의견

Thanks, I have been using the format “wikipedia:en=Haverhill, Massachusetts” (I had seen that form used on some other relations in MA). I think I started doing that about 50% of my way through, so some of them are still missing the wikipedia tag. In any case, using “wikipedia:en=” seems to have the same effect as “wikipedia=en:” in that it generates correct URLs to the Wikipedia page but that maybe a fluke.

2012년 9월 11일 14:41Peter Dobratz님의 의견

From what I understand, the preferred method is to put the language prefix in the tag value (wikipedia=en:Haverhill, Massachusetts) and have the tag key just be “wikipedia” without any language specification.

2012년 9월 11일 19:16fiveisalive님의 의견

Thanks, looking at the OSM wiki page on the “wikipedia” tag: osm.wiki/Wikipedia it seems that it first mentions the “wikipedia=language:page title” format at the top, but later it refers to using the “wikipedia:lang=page title” format, for cases that don’t seem different to the main use case. So this page seems to be the source of confusion.

In either case, feel free to fix or add the “wikipedia” tag where I’ve missed them. :)

2012년 9월 12일 08:09Sanderd17님의 의견

Thank you for the boundaries. They’re extremely important for a good search.

As for the Wikipedia link, you know that the boundaries now also get rendered in Wikipedia when a correct link is provided? You can see it by clicking on the little map icon: http://en.wikipedia.org/wiki/Massachusetts

The German wikipedia uses a different rendering (mostly standard Mapnik, but with localised names) but for this page, it seems to be missing the coordinates template.

댓글을 남기려면 로그인하세요