younifyd
Menu

Search a vector tile (POST)

Search a vector tile

POST/{index}/_mvt/{field}/{zoom}/{x}/{y}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Search a vector tile (POST) action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{searchAVectorTilePost.response.data}}.

Request

Path parameters

indexoneOfrequired

A list of indices, data streams, or aliases to search. It supports wildcards (`*`). To search all data streams and indices, omit this parameter or use `*` or `_all`. To search a remote cluster, use the `<cluster>:<target>` syntax.

fieldstringrequired

A field that contains the geospatial data to return. It must be a `geo_point` or `geo_shape` field. The field must have doc values enabled. It cannot be a nested field. NOTE: Vector tiles do not natively support geometry collections. For `geometrycollection` values in a `geo_shape` field, the API returns a hits layer feature for each element of the collection. This behavior may change in a future release.

zoomnumberrequired

The zoom level of the vector tile to search. It accepts `0` to `29`.

xnumberrequired

The X coordinate for the vector tile to search.

ynumberrequired

The Y coordinate for the vector tile to search.

Query parameters

exact_boundsboolean

If `false`, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a geo_bounds aggregation. The aggregation runs on <field> values that intersect the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting bounding box may be larger than the vector tile.

extentnumber

The size, in pixels, of a side of the tile. Vector tiles are square with equal sides.

grid_aggstring

Aggregation used to create a grid for `field`.

One ofgeotilegeohex

grid_precisionnumber

Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results don't include the aggs layer.

grid_typestring

Determines the geometry type for features in the aggs layer. In the aggs layer, each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon of the cells bounding box. If 'point' each feature is a Point that is the centroid of the cell.

One ofgridpointcentroid

sizenumber

Maximum number of features to return in the hits layer. Accepts 0-10000. If 0, results don't include the hits layer.

track_total_hitsoneOf

The number of hits matching the query to count accurately. If `true`, the exact number of hits is returned at the cost of some performance. If `false`, the response does not include the total number of hits matching the query.

with_labelsboolean

If `true`, the hits and aggs layers will contain additional point features representing suggested label positions for the original features. * `Point` and `MultiPoint` features will have one of the points selected. * `Polygon` and `MultiPolygon` features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. * `LineString` features will likewise provide a roughly central point selected from the triangle-tree. * The aggregation results will provide one central point for each aggregation bucket. All attributes from the original features will also be copied to the new label features. In addition, the new features will be distinguishable using the tag `_mvt_label_position`.

Response

Returns 200 with an object. Read it in later steps with {{searchAVectorTilePost.response.data.<field>}}.

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Search a vector tile (POST) — Elasticsearch — Documentation