Search code examples
openstreetmapoverpass-api

Overpass API: Recurse up and filter


I want to find all ways containing a specific node. I do so with:

    [out:json];
    (
        node(<NODE-ID>);
        <;
        
    );
    out body;

Now is there a way to filter the result I got using the recurse up?

I would like to receive only ways and and only such which are available for cars.


Solution

  • I did it using a workaround. I took all ways close to the node coordinate and then recursed down, to also receive the nodes.

    (
        way[maxspeed](around:1,<lat>,<lon>);
        >;
    );
    out geom;