Skip to content

Retations not shown in output, depends on reference node? #24

@maganap

Description

@maganap

Hello!

I'm trying to recurse up and down from a node, like this:

( node(21289794); <; >; ); out meta;

This node, 21289794, belongs to a way and then to a relation: highway=motorway A-7 in Spain.

When using query-overpass, I don't get the 3 expected relations that I do get from other tools:

  • If I make this request from http://overpass-turbo.eu/ , I receive 31204 nodes, 3169 ways, and 3 relations.

  • If I make the same request directly to OSM interpreter, I get 31189 nodes, 3166 ways, and 3 relations.

    curl --location --globoff -o a7.osm “http://api.openstreetmap.fr/oapi/interpreter?data=[out:json];(node(21289794);%3C;%3E;);out;”

  • If I make the request using query-overpass, then, I get 1024 nodes (which is fine), 3169 ways, but I get none of the 3 relations.

    echo '[out:json];(node(21289794);<;>;);out meta;' | query-overpass > a-7.json

If I make the same procedure using a different node (506902452), which belongs to relation: highway=motorway A-20 in Spain, I do get 1 relation using each of the 3 previous methods.

Shouldn't I get the expected relations using the 3 methods?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions