NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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

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

permanent link

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×127
×58
×3

question asked: 25 Apr '17, 12:20

question was seen: 2,385 times

last updated: 30 Oct '22, 01:31

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum