This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

radius and xapi

0

Hi,

how can I use radius with xapi in overpass-api?

thanks

asked 28 Jun '16, 13:33

OuedraogoMichel's gravatar image

OuedraogoMichel
14556
accept rate: 0%


One Answer:

3

I'm afraid, XAPI doesn't support radius. XAPI is quite a dated query langugage and only covers a very small subset of what is otherwise possible with Overpass QL or XML.

For an example using around in Overpass QL ("Find all cinemas in Bonn which are at most 100m away from bus stops"), please take a look at the documentation on the OSM wiki: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Relative_to_other_elements_.28around.29

BTW: To migrate your old XAPI queries to current Overpass QL, you can leverage the migration guide.

answered 28 Jun '16, 13:40

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

edited 28 Jun '16, 13:43

Source code available on GitHub .