tyrasd / overpass-wizard

:dizzy: Human friendly way to generate Overpass API queries
33 stars 6 forks source link

standalone "newer" doesn't work #2

Closed tyrasd closed 4 years ago

tyrasd commented 8 years ago

type:relation and newer:"2 minutes" global produces a query which results in a syntax error on Overpass API:

static error: "newer" can appear only inside "query" statements.

Here's the offending Overpass QL code (the error references line 8 which is the opening bracket of the query's main union statement):

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:relation and newer:"2 minutes" global”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “newer:"2 minutes"”
  relation(newer:"{{date:2 minutes}}");
);
// print results
out body;
>;
out skel qt;