[OSM-talk] OSMXAPI stable?

Roland Olbricht roland.olbricht at gmx.de
Tue Sep 22 15:07:51 BST 2009


> But if the XAPI is not working I have to cancel that.
> Or is there a similar service I can use for that?

You can use OSM3S. Just send a post request with content

http://78.46.81.38/api/poi?bbox=15.5337,48.1732,15.7161,48.2362&amenity=restaurant

You should receive a gzip-compressed osm file.
This request is a short cut for the request to

http://78.46.81.38/api/interpreter

with POST data:

<osm-script timeout="180">

<query type="node">
  <bbox-query w="15.5337" s="48.1732" e="15.7161" n="48.2362"/>
  <has-kv k="amenity" v="restaurant"/>
</query>
<print mode="body"/>

</osm-script>

A comprehensive (but not yet complete) documentation of OSM3S can be found at
http://78.46.81.38

Feel free to experiment with other queries or ask for other short cuts. 

Cheers,

Roland





More information about the talk mailing list