User:Marsupium/Notes

From OpenStreetMap Wiki
Jump to navigation Jump to search

TODO

check_date:collection_times=* less than 2 years ago

try it yourself in overpass-turbo
node["check_date:collection_times"](if:date(t["check_date:collection_times"])>date("{{date:2 year}}"))({{bbox}});
out;

See also Overpass API/Overpass API by Example#Alternative that also checks the syntax of the collection time.

amenity=post_box tags operator=* and collection_times=* for a specific area

compare with https://standorte.deutschepost.de/Standortsuche, https://www.pin-ag.de/standortsuche etc.

try it yourself in overpass-turbo
/* legend:
## operator: line:
* no: red
* some: green, wider
* Deutsche Post (AG)?: yellow, wider

## collection_times: fill:
* not set: red
* set: green
*/

{{geocodeArea:Berlin}}->.searchArea;
(
  node[amenity=post_box]
  (area.searchArea);
  >;
);
out;

{{geocodeId:Tempelhof}};
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out;

{{style:
node
{ opacity: 0;
  fill-opacity: 0; }
node[amenity=post_box]
{ opacity: 0.9;
  fill-opacity: 0.5; }

node[amenity=post_box][!operator]
{ color: red; }
node[operator]
{ width: 4;
  color: green }
node[operator=~/Deutsche Post.*/]
{ color: yellow; }

node[collection_times]
{ fill-color: green; }
node[amenity=post_box][!collection_times]
{ fill-color: red; }
}}