Skip to main content

wrap_longitude

Function wrap_longitude 

Source
pub fn wrap_longitude(longitude: f64) -> f64
Expand description

Neo4j’s longitude wrap into [-180, 180], keeping both endpoints (180.0 → 180.0, -180.0 → -180.0, 180.5 → -179.5, -200.0 → 160.0, -540.0 → -180.0). This is the stored geographic-longitude domain for the producers that uphold it — the engine’s point() constructor and the Query API typed decoders — so the POINT index’s envelope clip (which assumes the domain) and the residual scan cannot disagree (LABS-1236). Bolt point parameters are stored bit-for-bit instead, by ADR-0177 §2.