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

9
3

If someone deletes an item, I realise I don't know how I can find the original data (or who changed it, or why, or the history) unless I know the id. (Obviously, if I have an old copy of the data, then I have the id, but in the case I just hit, I didn't). Is there some magic way I don't know about, despite my many years with OSM? Is there some way to ask for deleted items in a bounding box?

asked 07 Jul '16, 15:25

davidearl's gravatar image

davidearl
181346
accept rate: 0%

edited 07 Jul '16, 15:26

2

A little outdated mentioning tools which don't exist anymore and not mentioning all existing working ones.

(09 Jul '16, 01:29) malenki

@malenki: then update it! ;-) People will still find the old question.

(09 Jul '16, 14:20) aseerel4c26 ♦

When you know where data is amiss you can use use Overpass Turbo to display the data of that region at a certain date or between two dates.

To do so you go to the place where you miss the data (zoom in as far as possible to minimize the server load), paste the query of your desire at the left side and click "Run".

To restore data you can either click on the data you look for and use the changeset or way/node ID for an undeletion in JOSM with reverter or undelete plugin. Or you try some of the possibilities "export" offers (although only "raw data" worked for me while testing it now.

(I tried to paste the queries here but they aren't shown, thus just the link.)

screenshot of Overpass Turbo showing deleted objects

permanent link

answered 08 Jul '16, 21:09

malenki's gravatar image

malenki
4.7k24683
accept rate: 6%

edited 09 Jul '16, 10:03

Your query give me an error

An error occured during the execution of the overpass query! This is what overpass API returned:

Error: line 5: parse error: ';' expected - 'osm' found.

Error: line 12: parse error: Unexpected end of input.

(01 Dec '16, 15:06) ff5722

If you forget both the location and id, there's still a tedious way. Download the full-history file and search for the item with your item's name (or any tags). If the item has the condition of "visible=false", then it's deleted.

But remember, this is the last resort.

permanent link

answered 08 Dec '16, 08:44

Wetitpig0's gravatar image

Wetitpig0
307161928
accept rate: 10%

You can use Potlatch 1 to look for deleted ways in an area. There isn't an easy way of looking for deleted nodes.

If someone's deleted something and replaced it with something else then you can of course look for nodes that were deleted in the changeset that added the new thing, but with large changesets that'll be a challenge.

permanent link

answered 07 Jul '16, 15:38

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Yes, it was nodes I was after this time. Useful to know about ways in old Potlatch though. How does it do it, if there isn't an API call for it? Perhaps we need such an API operation?

(07 Jul '16, 15:43) davidearl
3

Potlatch 1 uses its own API. The call has never been recreated in the mainstream XML API.

(07 Jul '16, 21:49) Richard ♦

The answer that is now at the top guided me in the right direction when I now had this problem (was wondering why there was no building on the map where I remember one being in reality), but may be confusing to some people; it certainly was for me.

Overpass Turbo is indeed the right tool for this job. A query that finds historical data there looks something like this:

[out:json][timeout:25];
retro ('2022-01-01T00:00:00Z') {
// gather results
(
  nwr["building"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
}

Adjust the date in the retro line depending on when, and in the nwr["building"] line depending on what you are looking for.

When you have found a date when it still existed, it will display the deleted object on the map, which you can click and will get a link to an ordinary openstreetmap.org/way/... link which you can click and find the changeset that deleted it.

permanent link

answered 21 Apr '23, 17:42

goaned's gravatar image

goaned
56113
accept rate: 0%

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:

×290
×102
×33

question asked: 07 Jul '16, 15:25

question was seen: 7,634 times

last updated: 21 Apr '23, 17:42

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