diff --git a/core/commands.json b/core/commands.json index 7936a695..8fe9b3b7 100644 --- a/core/commands.json +++ b/core/commands.json @@ -1785,5 +1785,230 @@ "complexity": "O(1)", "since": "1.10.0", "group": "scripting" + }, + "TEST":{ + "summary": "Performs spatial test", + "complexity": "One test per command, complexity depends on the test", + "arguments": [ + { + "name": "area1", + "enumargs": [ + { + "name": "GET", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ] + }, + { + "name": "BOUNDS", + "arguments":[ + { + "name": "minlat", + "type": "double" + }, + { + "name": "minlon", + "type": "double" + }, + { + "name": "maxlat", + "type": "double" + }, + { + "name": "maxlon", + "type": "double" + } + ] + }, + { + "name": "OBJECT", + "arguments":[ + { + "name": "geojson", + "type": "geojson" + } + ] + }, + { + "name": "CIRCLE", + "arguments": [ + { + "name": "lat", + "type": "double" + }, + { + "name": "lon", + "type": "double" + }, + { + "name": "meters", + "type": "double" + } + ] + }, + { + "name": "TILE", + "arguments":[ + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + }, + { + "name": "z", + "type": "double" + } + ] + }, + { + "name": "QUADKEY", + "arguments":[ + { + "name": "quadkey", + "type": "string" + } + ] + }, + { + "name": "HASH", + "arguments": [ + { + "name": "geohash", + "type": "geohash" + } + ] + } + ] + }, + { + "name": "test", + "enumargs": [ + { + "name": "INTERSECTS" + }, + { + "name": "WITHIN" + } + ] + }, + { + "command": "CLIP", + "name": [], + "type": [], + "optional": true + }, + { + "name": "area2", + "enumargs": [ + { + "name": "GET", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ] + }, + { + "name": "BOUNDS", + "arguments":[ + { + "name": "minlat", + "type": "double" + }, + { + "name": "minlon", + "type": "double" + }, + { + "name": "maxlat", + "type": "double" + }, + { + "name": "maxlon", + "type": "double" + } + ] + }, + { + "name": "OBJECT", + "arguments":[ + { + "name": "geojson", + "type": "geojson" + } + ] + }, + { + "name": "CIRCLE", + "arguments": [ + { + "name": "lat", + "type": "double" + }, + { + "name": "lon", + "type": "double" + }, + { + "name": "meters", + "type": "double" + } + ] + }, + { + "name": "TILE", + "arguments":[ + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + }, + { + "name": "z", + "type": "double" + } + ] + }, + { + "name": "QUADKEY", + "arguments":[ + { + "name": "quadkey", + "type": "string" + } + ] + }, + { + "name": "HASH", + "arguments": [ + { + "name": "geohash", + "type": "geohash" + } + ] + } + ] + } + ], + "since": "1.16.0", + "group": "tests" } } diff --git a/core/commands_gen.go b/core/commands_gen.go index fddaa3b2..5b4157a5 100644 --- a/core/commands_gen.go +++ b/core/commands_gen.go @@ -1951,5 +1951,230 @@ var commandsJSON = `{ "complexity": "O(1)", "since": "1.10.0", "group": "scripting" + }, + "TEST":{ + "summary": "Performs spatial tests", + "complexity": "One test per command, complexity depends on the test", + "arguments": [ + { + "name": "area1", + "enumargs": [ + { + "name": "GET", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ] + }, + { + "name": "BOUNDS", + "arguments":[ + { + "name": "minlat", + "type": "double" + }, + { + "name": "minlon", + "type": "double" + }, + { + "name": "maxlat", + "type": "double" + }, + { + "name": "maxlon", + "type": "double" + } + ] + }, + { + "name": "OBJECT", + "arguments":[ + { + "name": "geojson", + "type": "geojson" + } + ] + }, + { + "name": "CIRCLE", + "arguments": [ + { + "name": "lat", + "type": "double" + }, + { + "name": "lon", + "type": "double" + }, + { + "name": "meters", + "type": "double" + } + ] + }, + { + "name": "TILE", + "arguments":[ + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + }, + { + "name": "z", + "type": "double" + } + ] + }, + { + "name": "QUADKEY", + "arguments":[ + { + "name": "quadkey", + "type": "string" + } + ] + }, + { + "name": "HASH", + "arguments": [ + { + "name": "geohash", + "type": "geohash" + } + ] + } + ] + }, + { + "name": "test", + "enumargs": [ + { + "name": "INTERSECTS" + }, + { + "name": "WITHIN" + } + ] + }, + { + "command": "CLIP", + "name": [], + "type": [], + "optional": true + }, + { + "name": "area2", + "enumargs": [ + { + "name": "GET", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "id", + "type": "string" + } + ] + }, + { + "name": "BOUNDS", + "arguments":[ + { + "name": "minlat", + "type": "double" + }, + { + "name": "minlon", + "type": "double" + }, + { + "name": "maxlat", + "type": "double" + }, + { + "name": "maxlon", + "type": "double" + } + ] + }, + { + "name": "OBJECT", + "arguments":[ + { + "name": "geojson", + "type": "geojson" + } + ] + }, + { + "name": "CIRCLE", + "arguments": [ + { + "name": "lat", + "type": "double" + }, + { + "name": "lon", + "type": "double" + }, + { + "name": "meters", + "type": "double" + } + ] + }, + { + "name": "TILE", + "arguments":[ + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + }, + { + "name": "z", + "type": "double" + } + ] + }, + { + "name": "QUADKEY", + "arguments":[ + { + "name": "quadkey", + "type": "string" + } + ] + }, + { + "name": "HASH", + "arguments": [ + { + "name": "geohash", + "type": "geohash" + } + ] + } + ] + } + ], + "since": "1.16.0", + "group": "tests" } }`