---
title: "distance · RUAL Documentation"
description: "checks if the given fields is within the given distance."
canonical: https://docs.rual.nl/block-types/query/query_bool_geo_distance
language: en
---

# distance

This block is part of the [`query`](https://docs.rual.nl/block-types/query) group and was last modified in core [`v13.0.8`](https://docs.rual.nl/core-versions/130008).

### Parent Requirements

This block requires specific parent elements: `query_bool_filter`, `query_first_defined`. Ensure this block is placed within the appropriate parent context.

checks if the given fields is within the given distance.

- distance required `value`

- lat required `number`

- lon required `number`

- location `geo_point` required `geo_point`

- query `query`

### Core Releases
