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

Function encode_precision_6_default

nodedb-spatial/src/geohash.rs:315–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313
314 #[test]
315 fn encode_precision_6_default() {
316 let hash = geohash_encode(-73.9857, 40.7580, 6);
317 assert_eq!(hash.len(), 6);
318 // Should start with "dr5ru" (NYC area prefix).
319 assert!(hash.starts_with("dr5ru"), "got {hash}");
320 }
321
322 #[test]
323 fn encode_precision_12() {

Callers

nothing calls this directly

Calls 1

geohash_encodeFunction · 0.85

Tested by

no test coverage detected