AshNeo4j.Functions.StDwithin (AshNeo4j v0.7.0)

Copy Markdown View Source

True if two geometries are within a given distance of each other. Mirrors ash_geo / PostGIS ST_DWithin. v1 supports point-point only, with the threshold in meters (geodesic, WGS-84).

Place
|> Ash.Query.filter(st_dwithin(location, ^customer_point, 5_000))
|> Ash.read!()

Pushes down to Neo4j's native:

point.distance(n.location, $test_point) <= $threshold

…a single boolean predicate. Falls back to in-memory evaluate/1 if the data layer can't push it down. Boundary is inclusive (matches PostGIS semantics).

Summary

Functions

args()

Callback implementation for Ash.Query.Function.args/0.

has_partial_evaluate?()