Hi Everyone,

I am curious if Overpass is able to query features that were added or have changes in tag value.

For example, I wanna see how many oneway tags were added for a given month. Likewise seeing also if there are any changes in the tag value.

This is the current code i am using. [diff: "2018-05-30T15:00:00Z","2018-06-30T15:00:00Z"][out:xml][timeout:25];(way"oneway";);out body;>;out skel qt;

This query gives anything that is touched but does not always pertain to added oneway tag. it can be any change to the segment tagged oneway.

Any thoughts about this?

asked 30 Nov, 01:02

mapsbyjujubee's gravatar image

mapsbyjujubee
26115
accept rate: 0%


You can further filter the results of your query to only those with actual changes of the "oneway" tag with the compare statement, see also blog post section Sliced Time and Space - Comparing Diffs:

[adiff:"2018-05-30T15:00:00Z","2018-06-30T15:00:00Z"];
way["oneway"]({{bbox}});
compare(delta:t["oneway"]);
out meta geom;

Overpass Turbo

adiff results in the Augmented Diff format can also be visualized in achavi (better shows create/modify/delete) by exporting the data into a file with "Export" > "download raw OSM data" and drag&drop onto the map at https://overpass-api.de/achavi/.

permanent link

answered 30 Nov, 18:16

ikonor's gravatar image

ikonor
1.1k2916
accept rate: 25%

@ikonor This is awesome thank you!
Just a follow-up question will be possible to add USER here as well to this query? I tried running the code below but it's giving me false positives. Now that I answer the time question I wanna see if I can associate it with USER and see what changes a USER or a group of user has done to a specific tag. is that possible?

[adiff:"2018-05-30T15:00:00Z","2018-06-30T15:00:00Z"]; way"oneway"({{bbox}}); compare(delta:t["oneway"]); out meta geom;

(01 Dec, 20:43) mapsbyjujubee

I fear there is no proper way to filter adiff results by user. There is a user/uid filter [1], but that's weird and does not do what you would expect in an adiff query (e.g. misses deletes/tag removals), because what you would want is to filter the "new" objects in the adiff output, not the data in each timestamp query.

[1] https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_user_.28user.2C_uid.29

(02 Dec, 13:41) ikonor
Your answer
toggle preview

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:

×319
×105

question asked: 30 Nov, 01:02

question was seen: 137 times

last updated: 02 Dec, 13:43

powered by OSQA