MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / st_distance_sql

Function st_distance_sql

nodedb-query/src/functions/mod.rs:187–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185
186 #[test]
187 fn st_distance_sql() {
188 let result = eval_fn(
189 "st_distance",
190 vec![point_value(0.0, 0.0), point_value(0.0, 1.0)],
191 );
192 let d = result.as_f64().unwrap();
193 assert!((d - 111_195.0).abs() < 500.0, "got {d}");
194 }
195
196 #[test]
197 fn st_dwithin_sql() {

Callers

nothing calls this directly

Calls 2

eval_fnFunction · 0.85
as_f64Method · 0.45

Tested by

no test coverage detected