<html><head></head><body>Thanks! <div><br></div><div>I understand that i might not get 100% coverage. That is okay. Any data that I can get is useful.</div><div><br></div><div>How would one go about contacting a friendly operator of a osm2pgsql server? </div><div><br></div><div><br></div><div>Fredy<br><div><br><br><div><strong>
From:
</strong>
Simon Poole <simon@poole.ch>
<br>
<strong>
To:
</strong>
<dev@openstreetmap.org>
<br>
<strong>
Sent:
</strong>
8/7/2017 12:08 PM
<br>
<strong>
Subject:
</strong>
Re: [OSM-dev] XAPI
<br><br><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<p>There are multiple reasons why this is not going to work, not the
least that there have been no public native XAPI servers available
for a very long time.</p>
<p>See <a class="mcntmoz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/Xapi" target="_blank">http://wiki.openstreetmap.org/wiki/Xapi</a></p>
<p>But in any case extracting anything for the whole world from any
API is not a good idea, I would suggest downloading a planet dump
and filtering the objects out of it, or asking a friendly operator
of a osm2pgsql server with the whole planet imported to generate a
list of schools for you.</p>
<p>The other thing to take in to account, that while we undoubtedly
have a lot of schools in OSM and in some areas will have 100%
coverage this is definitely not universal. <br>
</p>
<p>Simon<br>
</p>
<br>
<div class="mcntmoz-cite-prefix">Am 07.08.2017 um 17:43 schrieb Fredy
Yanez:<br>
</div>
<blockquote type="cite">Good afternoon,
<div><br>
</div>
<div><br>
</div>
<div>I'm working for a no profit and our goal is to measure
internet connectivity for every school in the world. It would be
very beneficial is we had access to every school within the
database. To do this I've been trying to use XAPI and I'm having
a few errors.</div>
<div><br>
</div>
<div><br>
</div>
<div>For example when I try to use XAPI URLs:</div>
<div> <span style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; background-color: rgb(249, 249, 249);">wget --timeout</span><span class="mcnto" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(102, 102, 102);">=</span><span class="mcntm" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(102, 102, 102);">0</span><span style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; background-color: rgb(249, 249, 249);"> <a class="mcntmoz-txt-link-freetext" href="http://www.informationfreeway.org/api/0.6/node" target="_blank">http://www.informationfreeway.org/api/0.6/node</a></span><span class="mcnto" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(102, 102, 102);">[</span><span class="mcntnv" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(25, 23, 124);">amenity</span><span class="mcnto" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(102, 102, 102);">=</span><span class="mcnto" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; background-color: rgb(249, 249, 249);">schools</span><span class="mcnto" style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; color: rgb(102, 102, 102);">]</span><span style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; background-color: rgb(249, 249, 249);"> -O data.osm</span></div>
<div><span style="font-family: monospace, Courier; font-size: 1.2em; line-height: 1.3em; white-space: pre-wrap; widows: auto; background-color: rgb(249, 249, 249);">
</span></div>
<div>I get this link as a response: </div>
<div><br>
</div>
<div>
<p class="mcntp1"><span class="mcnts1"><a class="mcntmoz-txt-link-freetext" href="http://www.informationfreeway.org/noapi.html" target="_blank">http://www.informationfreeway.org/noapi.html</a></span></p>
<p class="mcntp1"><span class="mcnts1"><br>
</span></p>
<p class="mcntp1"><span class="mcnts1">and in data.osm I get :</span></p>
<p class="mcntp1"><span class="mcnts1">/////////////////////////</span></p>
<p class="mcntp1"><span class="mcnts1"><!-- Avoid logging 404 errors
when /api requests received --></span></p>
<p class="mcntp1"><span class="mcnts1">
</span></p>
<p class="mcntp1"><span class="mcnts1">No API</span></p>
<p class="mcntp1"><span class="mcnts1"><br>
</span></p>
<p class="mcntp1"><span class="mcnts1">////////////////////////</span></p>
<p class="mcntp1"><span class="mcnts1"><br>
</span></p>
<p class="mcntp1"><span class="mcnts1">I was wondering what I'm doing
wrong?</span></p>
<p class="mcntp1"><span class="mcnts1">My guess is that I'm not
authenticating or something along those lines.</span></p>
<p class="mcntp1"><span class="mcnts1"><br>
</span></p>
<p class="mcntp1"><span class="mcnts1">What is the best way to solve
this problem ?</span></p>
<p class="mcntp1"><span class="mcnts1"><br>
</span></p>
<p class="mcntp1"><span class="mcnts1">Thanks !</span></p>
<p class="mcntp1"><span class="mcnts1">Fredy</span></p>
</div>
<br>
<fieldset class="mcntmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
dev mailing list
<a class="mailto moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org" title="Send email to dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a>
<a class="mcntmoz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/dev" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a>
</pre>
</blockquote>
<br>
</div><br><br>_______________________________________________<br>dev mailing list<br>dev@openstreetmap.org<br>https://lists.openstreetmap.org/listinfo/dev<br></blockquote></div></div></div></body></html>