I have an application which uses OSM data, but from one city only, which I got the data for using a query:
I use information about nodes and ways, put them in my database and then do some calculations on them. Now time has passed and the data changed. I'd like to see what changed, so that I can update (without dropping all the data and inserting it again) Is there a way, to query asked 01 Apr '16, 12:05 prajmus |
The /map query is part of the XAPI compatibility layer: http://wiki.openstreetmap.org/wiki/Overpass_API/XAPI_Compatibility_Layer Here's a roughly equivalent query using the Overpass API query language: http://overpass-turbo.eu/s/foV (fetches nodes in the bounding box and also any parent objects. To see the query url, look under "Export" for the "raw data directly from Overpass API" link.) A global diff statement can be added to that query: http://overpass-turbo.eu/s/foW (returns nothing) It'll probably be some work to figure out what's in the diff and so on, but the global diff setting is what you are looking for. You may also want to take a look at the augmented diff: http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Delta_between_two_dates_.28.22diff.22.29 answered 01 Apr '16, 15:13 maxerickson |
I am quite unfamiliar with overpass but by coincidence have been perusing the web documentation in the last few hours and I found that 'newer' and 'changed' under Filters at this site may be what you need if you can download Attic data. The difference block statement may be suitable if you can do your query on both todays data and the date you did your extract. http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL Also as reference: http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide answered 01 Apr '16, 13:03 nevw |
Cross posted: http://stackoverflow.com/questions/36350382/openstreetmap-diff-from-a-bounding-box