<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Yes I agree that every country's
borders on earth adds up to a lot of data. And my last reply could
have been clearer. If you look at his original query (which is
mangled now by the email), He was looking for the NODES of each
country's capital city, not the city borders.?? And although the
Argentina relation may only have 2 nodes in the relation, there
are apparently 80 other city nodes there tagged with
admin_level=2, which seems like bad tagging.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 8/13/2019 10:21 PM, Warin wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6b9d69d3-b642-5613-23bb-c42c78bf1481@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 14/08/19 11:39, Wayne Emerson, Jr.
via talk wrote:<br>
</div>
<blockquote type="cite"
cite="mid:478f6730-b5a4-1861-9703-534dcaef5c6b@verizon.net">He
wasn't asking for every town on earth. Just every country's
border, and every country's capitol. I am a noob too so can't
answer his question. But I did run the wizard with
"admin_level=2 and type:node" and got 3,988 nodes. Which begs
the question, why does Argentina have dozens of admin level 2
nodes? I am guessing around 80 or so. <br>
</blockquote>
<br>
Each border would usually be a relation with a number of ways.
Each way will have a number of nodes to make the way. <br>
<br>
<br>
Example <br>
Argentina is relation 286393<br>
<br>
<a class="moz-txt-link-freetext"
href="https://www.openstreetmap.org/relation/286393#map=4/-40.51/-63.63"
moz-do-not-send="true">https://www.openstreetmap.org/relation/286393#map=4/-40.51/-63.63</a><br>
<br>
It has 2 nodes, many ways and a number of separate relations...
look at teh above link. <br>
<br>
One of those ways is Way: <bdi>Border Chile - Argentina</bdi> (<bdi>206446254</bdi>)
and that single way has 393 nodes. <br>
<br>
<blockquote type="cite"
cite="mid:478f6730-b5a4-1861-9703-534dcaef5c6b@verizon.net"> <br>
On 8/13/2019 6:30 PM, Warin wrote: <br>
<blockquote type="cite">On 14/08/19 07:41, L??o El Amri via talk
wrote: <br>
<blockquote type="cite">Hello, <br>
<br>
I'm trying to fetch countries, their borders, and their
capitals through <br>
Overpass API, but the server never replies to me (With a
timeout:3600 <br>
setting, the server reply with a 502 error after a while). <br>
I'm only a beginner with this API, so maybe my request is
not efficient: <br>
<br>
( <br>
???? node[place=city]; <br>
</blockquote>
</blockquote>
</blockquote>
<br>
this gets all cities?<br>
<blockquote type="cite"
cite="mid:478f6730-b5a4-1861-9703-534dcaef5c6b@verizon.net">
<blockquote type="cite">
<blockquote type="cite">???? node[place=town]; <br>
</blockquote>
</blockquote>
</blockquote>
this gets all towns?<br>
<blockquote type="cite"
cite="mid:478f6730-b5a4-1861-9703-534dcaef5c6b@verizon.net">
<blockquote type="cite">
<blockquote type="cite">)->.a; <br>
rel[boundary=administrative][admin_level=2]->.b; <br>
( <br>
???? node[place=country]; <br>
???? node.a[capital=yes]; <br>
???? way[boundary=administrative][admin_level=2]; <br>
???? .b; <br>
???? .b >; <br>
)->.o; <br>
.o out body; <br>
<br>
What am I doing wrong ? (Should I use another tool for this
purpose ?) <br>
<br>
</blockquote>
<br>
Too much data? So it times out. <br>
<br>
You are asking for every node of; <br>
<br>
city 19,930 <br>
<br>
town 111,981 <br>
<br>
country 221 <br>
<br>
And then boundaries as well. 29,752 <br>
<br>
The numbers I got from taginfo.. did not bother with
separating nodes etc. <br>
<br>
I think the boundaries will cause problems - lots of nodes and
ways in there as well as the relations. <br>
<br>
Suggestions? Do it in small sections. <br>
<br>
Get the cities and countries as one item and see if that
works. Save the result for later merging. <br>
<br>
Get the boundaries for a small section of the world .. with
few boundaries and see if that works. <br>
<br>
<br>
<br>
</blockquote>
</blockquote>
<p><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/talk">https://lists.openstreetmap.org/listinfo/talk</a>
</pre>
</blockquote>
<p><br>
</p>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>