point

Generic Description

Computes point, distance, or containment helpers for location-aware values. It is documented separately because coordinate shape, distance units, and containment assumptions need to be visible in the query text.

Simple example:

RETURN point({latitude: 48.8566, longitude: 2.3522}) AS p

Consumer-Level Explanation

Use it when location math should stay visible next to graph filters and document payloads. Prefer this function when the location calculation is part of filtering, ranking, or audit evidence rather than display-only formatting.

More Detailed Explanation

point should be understood by the value shape it expects and the row shape it returns. It composes with MATCH, WHERE, WITH, RETURN, and procedure output, so planner-facing documentation should describe both the immediate value transformation and why it belongs in the database query.

Advanced Example

This example uses point inside a named row pipeline so the value shape is clear to both the planner and reviewers.

MATCH (r:Runner)
CALL nexyron.temporal_history(id(r), 'position', 0, 10000)
YIELD ts, value
RETURN r.name,
       ts,
       point({latitude: value.lat, longitude: value.lon}) AS p
ORDER BY ts

Real Use Cases

Real Limitations And Tradeoffs