This simple php class helps to compare the results of the same Overpass API query requested in two different times. It shows the changed tags, attributes and child nodes. It also shows the deleted and newly created elements.
It uses the adiff of the Overpass API.
Example site: 207.180.171.165/OverpassDiff (Please do not overload my devserver.)
##Requirements:
- Php
##Cache It saves the result of every Overpass Query.
##Variables
- dateOld & dateNew
- The UTC datetimes for the base of the comparsion.
- It can be in any format recognizeble by
strtotime()
. For example:2015-12-24 18:00:00
or-1 month
. - Default: from
-1 week
to the beginning of the current hour =date('Y-m-d H:00:00')
. - timeout
- Default: 25
##Shortcuts You can use some of the Overpass Shortcuts from the Extended Overpass Queries: {{geocodeId:name}}, {{geocodeArea:name}}, {{geocodeArea:name}}, {{geocodeCoords:name}}
##Development Please, come and help to make this a great tool.