<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Roland,<br>
<br>
Currently, I'm also experiencing some problems with the XAPI, but it
looks like OSM3S is going to suit my needs even better. It looks very
promising. However, I do know if all my XAPI queries can be converted
to OSM3S already, or that not all commands are implemented yet. A query
is:<br>
api/0.6/node[rcn_ref=*][bbox=2.7984557419334006,50.62642256377723,7.388298070963748,53.954129036190224]<br>
The bbox thing might be replaced with containment in area 3600047796.
The things that I would like to know are:<br>
- Is it possible to query for key presence? I only know how to query
for key-value pairs.<br>
- Can I intersect a kv query with a region query? I only saw the
availability of union, not any kind of intersection.<br>
<br>
Thank you very much,<br>
Steven<br>
<br>
<br>
Roland Olbricht schreef:
<blockquote cite="mid:200906082306.06927.roland.olbricht@gmx.de"
type="cite">
<blockquote type="cite">
<pre wrap="">This happened over the weekend too. The request this time was
<a class="moz-txt-link-freetext" href="http://osmxapi.hypercube.telascience.org/api/0.6/node">http://osmxapi.hypercube.telascience.org/api/0.6/node</a>[amenity=studio]
</pre>
</blockquote>
<pre wrap=""><!---->
You can try to use the "OSM Server Side Script" server. Just try on the
command line
wget -O studio.nosm --post-data="<query type=\"node\"><has-kv k=\"amenity\"
v=\"studio\"/></query><print mode=\"body\"/>"
<a class="moz-txt-link-freetext" href="http://78.46.81.38/api/interpreter">http://78.46.81.38/api/interpreter</a>
(all on a single line)
or run in you favourite browser
<a class="moz-txt-link-freetext" href="http://78.46.81.38/api/interpreter?data=%3Cquery%20type=%22node%22%3E%3Chas-kv%20k=%22amenity%22%20v=%22studio%22/%3E%3C/query%3E%3Cprint%20mode=%22body%22/%3E">http://78.46.81.38/api/interpreter?data=%3Cquery%20type=%22node%22%3E%3Chas-kv%20k=%22amenity%22%20v=%22studio%22/%3E%3C/query%3E%3Cprint%20mode=%22body%22/%3E</a>
(entire URL on a single line)
This returns a gzipped file with all results. The service is less up-to-date
(designed to be 4 to 6 hours behind) and does not contain edit metadata
(timestamp, uid of editor, version) but depending on your needs it still
might help.
Cheers,
Roland
_______________________________________________
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="http://lists.openstreetmap.org/listinfo/talk">http://lists.openstreetmap.org/listinfo/talk</a>
</pre>
</blockquote>
</body>
</html>