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

Overpass-api: Return just the changeset data?

1

Hi

I'm using QL to try & return data of changesets created in the previous day.

[out:xml][timeout:25];
(
 (node(newer:"{{date:1Day}}")({{bbox}});
   way(newer:"{{date:1Day}}")({{bbox}});
 ) 
);
out meta;

This code returns the data I require (changeset & user) but does it for each entity found:

  "<"way id="197195793" version="3" timestamp="2017-04-24T16:41:29Z" changeset="12345678" uid="876432" user="Joe Bloggs">
    "<"snip>
  "<"/way>

Is there a way to return purely a list of the changesets?

OT Website question: Why doesn't the Markdown 'code' button accept (auto translate) '<' characters?!!

asked 25 Apr '17, 12:20

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%


One Answer:

1

For everybody who get past this question, here's the answer:

node(if: changeset() == "CHANGESET_ID")({{bbox}});

answered 30 Oct '22, 00:25

hanzceo's gravatar image

hanzceo
16
accept rate: 0%

That doesn't answer the question.

(30 Oct '22, 01:31) DaveF

Source code available on GitHub .