<div dir="ltr">Hi Cristian,<div><br></div><div>checking your algorithm:<br>> "search for place node with the same name as the admin relation"</div><div>( from <a href="https://github.com/krizleebear/osm-polygons/tree/master/osm-admincentre-resolve#implementation-details">https://github.com/krizleebear/osm-polygons/tree/master/osm-admincentre-resolve#implementation-details</a> )<span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px"><br></span></div><div><div><br></div><div>imho:</div><div>IF only the "name=" tags should be equal .. </div><div>THEN it is sometimes False matching expected .. ( at least in Hungary )<br><br></div></div>Hungarian example.<div>- The capital of "Békés" (county) is "Békéscsaba" (city) NOT "Békés" (city)<br></div><div><br></div><div><br></div><div><div>Node: <a href="https://www.openstreetmap.org/node/286994834">https://www.openstreetmap.org/node/286994834</a> name=Békés<br></div><div>is Part of<br>- Relation Békési kistérség (1026198) (as admin_centre)<br>- Relation Békés (1026148) (as admin_centre)<br>- Relation Békés megyei 2. sz. oevk (6360766) (as admin_centre)<br>- Relation Békési járás (2374330) (as admin_centre)<br></div><div><br></div><div>But NOT admin_centre of </div><div>- Relation: Békés (22266) ( admin_level=6 ) ;</div><div> ( The capital of Békés county is Békéscsaba. NOT Békés )</div><div><br><div>I don't know what is a correct algorithm ..<br>but in this case the<span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px"> </span><a href="https://www.wikidata.org/wiki/Q191616">https://www.wikidata.org/wiki/Q191616</a> has a correct capital name.<br></div><div><br></div></div></div><div>imho:<br></div><div>- limit only for relation admin_level=8 ... </div><div><br></div><div><br></div><div>Best,</div><div> Imre</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">krizleebear <<a href="mailto:osm@krizleebear.de">osm@krizleebear.de</a>> ezt írta (időpont: 2019. dec. 5., Cs, 0:06):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello OSM community,<br>
<br>
I'd like to propose an automated edit regarding "admin_centre linking".<br>
<br>
I've found that a lot of administrative boundaries are missing their admin_centre member although the respective place nodes have been created long time ago. My impression is that the manual linking is pretty tedious - I've tried.<br>
<br>
So I implemented an automatic resolver for that issue.<br>
It currently performs the resolving and exports a table with linked OSM IDs.<br>
<br>
After testing and reviewing, I come to the conclusion that an automated edit is a good solution.<br>
I want to get feedback before I implement any further steps.<br>
The next step would be to create OSM changesets adding the links.<br>
<br>
Detailed documentation of rationale and implementation can be found here:<br>
<a href="https://wiki.openstreetmap.org/wiki/Automated_edits/krizleebot" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Automated_edits/krizleebot</a><br>
<br>
<br>
Best regards<br>
Christian Leberfinger<br>
_______________________________________________<br>
Imports mailing list<br>
<a href="mailto:Imports@openstreetmap.org" target="_blank">Imports@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/imports" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/imports</a><br>
</blockquote></div>