Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

Inconsistent results when a point is close to the border of the selected area

Open mvglasow opened this issue 4 years ago • 2 comments

To reproduce

Run the following query multiple times, storing and comparing results:

[out:csv(ref, distance, ::lat, ::lon)];
area["admin_level"=2]["name:en"="Poland"]->.searchArea;
(
  node["highway"="milestone"](area.searchArea);
);
out body;
>;
out skel qt;

Expected result

The same result each time, unless the underlying OSM data have changed

Actual result

One entry keeps disappearing from the CSV file and then reappearing. Usually, when I launch a query, it is absent but appears when I repeat the query:

8	0	50.4297483	16.1975074

This point refers to km 0 of the national road 8, which is located just behind the Czech-Polish border, inside the selected area by just a tiny distance.

Further information

Tested against live overpass API within the last half hour; this has occurred since I added that particular point in JOSM a few weeks ago.

Apparently area selections are not fully repeatable, as borders vary slightly between calls. The pattern seems somewhat predictable, though: the point is absent from the first query, but repeating the query within a few minutes (at most) restores it. This has been fairly reproducible (I do not remember a single instance where the second attempt still did not restore that point).

mvglasow avatar Jul 21 '20 19:07 mvglasow

At the moment both production servers have different area versions, which explains the difference you're seeing.

The underlying issue for z.overpass-api.de has already been reported here: https://wiki.openstreetmap.org/wiki/Overpass_API/status

mmd-osm avatar Jul 21 '20 20:07 mmd-osm

So, after reading the descriptions, I understand that the two servers have different geometries for the same area, but otherwise the same data inside the area, correct? That would explain what I am seeing, then.

mvglasow avatar Jul 21 '20 21:07 mvglasow