Skip to content

Commit 4c59c5c

Browse files
authored
Show map also when changeset still open
Resolve osmlab#240 using the one-timestamp variant of the Overpass `adiff` statement if the `closed_at` property of the changeset is not set. For example ``` [adiff:"2023-10-25T07:00:00Z"] ``` Also, simplify the overpass query using the new-ish [`nwr` syntax](https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#The_Query_Statement)
1 parent 1b5cbaa commit 4c59c5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/getChangeset.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ function getDataParam(c) {
8282
return (
8383
'[out:xml][adiff:%22' +
8484
c.from.toString() +
85-
',%22,%22' +
86-
c.to.toString() +
87-
'%22];(node(bbox)(changed);way(bbox)(changed);relation(bbox)(changed););out%20meta%20geom(bbox);'
85+
(c.to ? '%22,%22' + c.to.toString() : '') +
86+
'%22];nwr(bbox)(changed);out%20meta%20geom(bbox);'
8887
);
8988
}
9089

0 commit comments

Comments
 (0)