Hello Roland,
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:
api/0.6/node[rcn_ref=*][bbox=2.7984557419334006,50.62642256377723,7.388298070963748,53.954129036190224]
The bbox thing might be replaced with containment in area 3600047796.
The things that I would like to know are:
- Is it possible to query for key presence? I only know how to query for
key-value pairs.
- Can I intersect a kv query with a region query? I only saw the
availability of union, not any kind of intersection.
Thank you very much,
Steven
Roland Olbricht schreef:
This happened over the weekend too. The request this time was
http://osmxapi.hypercube.telascience.org/api/0.6/node[amenity=studio]
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\"/>"
http://78.46.81.38/api/interpreter
(all on a single line)
or run in you favourite browser
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
(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
[email protected]
http://lists.openstreetmap.org/listinfo/talk
_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk