AshNeo4j.Functions.StDistanceInMeters (AshNeo4j v0.7.0)

Copy Markdown View Source

Alias for st_distance. PostGIS distinguishes the two because PostGIS ST_Distance returns degrees for geographic types unless cast; Neo4j's point.distance is always meters for WGS-84, so the distinction is cosmetic for us. This module exists for API parity with ash_geo so consumer code reads identically across data layers.

Place
|> Ash.Query.filter(st_distance_in_meters(location, ^p) < 5_000)
|> Ash.read!()

Same pushdown shape as st_distance — the comparison renders to point.distance(n.<prop>, $test) <op> $threshold. evaluate/1 delegates.

Summary

Functions

args()

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

has_partial_evaluate?()