Overpass-API
Overpass-API copied to clipboard
adiff filter for specific changed tags between 2 dates
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
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.
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.
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.
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.