Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

adiff filter for specific changed tags between 2 dates

Open baditaflorin opened this issue 7 years ago • 4 comments

From what i understand the diff and adiff works only on road geometry or if the version of a node/way/relation is changed.

Can you extract just the edits made by a user, on a specific time-frame, if that user added a new oneway tag. For now, using this query, i get 2 ways, but this is not what i am looking, because the oneway tag is not added by me, it was added 3 years ago by another user.

How could i do so that i see just the tags elements that were changed between 2 dates ?

http://overpass-turbo.eu/s/oTA

baditaflorin avatar May 08 '17 14:05 baditaflorin

Please see this explanation first: https://github.com/drolbr/Overpass-API/issues/244#issuecomment-160069101

From what i understand the diff and adiff works only on road geometry or if the version of a node/way/relation is changed.

That's not exactly correct. Meta data changes, tag changes and geometry changes are all relevant.

How could i do so that i see just the tags elements that were changed between 2 dates ?

This is currently not possible. You will always get a before / after image containing all tags as they were present in the respective version.

mmd-osm avatar May 08 '17 14:05 mmd-osm

Hi, thanks for the quick answer.

Can we use the if: condition to filter ?

I`m guessing no based on your answer.

I also understand now that i was getting the created for all of the tags because there is a new user on this query, compared to the old query.

baditaflorin avatar May 08 '17 15:05 baditaflorin

Can we use the if: condition to filter ?

Not sure, how you want to use if: in this scenario. Can you elaborate a bit?

created for all of the tags because there is a new user on this query, compared to the old query.

Yes exactly, when running the query with [date:2017-05-01T00:00:00Z] and (user:"florinbadita_telenav") you wouldn't get any result, as the way was changed by another user at that time. That's why diff & adiff return version 3 as created.

mmd-osm avatar May 09 '17 10:05 mmd-osm

Here is a query that fetches only highways which name tag has been changed in interval:

[adiff:"2020-10-10T00:00:00Z","2020-10-30T00:00:00Z"]; area["short_name"="TS"]->.searchArea; way["highway"]["name"](area.searchArea); compare(delta:t["name"]); out center;

area was necessary, since larger AOIs issued a server RAM overflow.

cascafico avatar Oct 29 '20 10:10 cascafico