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

Get changed nodes and ways from area

0

I want to get the diff of the area, but I'm only interested in the nodes and ways that changed. I don't care about relations. I know I can do:

[adiff:"2016-03-01T15:00:00Z"];
(
  node(52.1,20.9,52.3,21.2);
  <;
);
out;

Which returns nodes, ways they're on, relations they're on (correct me if I understand something wrong).

So I've modified the query.:

[adiff:"2016-03-01T15:00:00Z"];
(
  node(52.1,20.9,52.3,21.2);
  way(bn);
);
out;

But then I thought, what if a way was changed, but not the node's on it (two ways merged, or a way split or something like that). Is that possible? Would the below query be my final form ?

[adiff:"2016-03-01T15:00:00Z"];
(
  node(52.1,20.9,52.3,21.2);
  way(bn);
  way(52.1,20.9,52.3,21.2);
  node(w);
);
out;

asked 15 Apr '16, 13:36

prajmus's gravatar image

prajmus
16225
accept rate: 0%

Source code available on GitHub .