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

Function encode_precision_1

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

Source from the content-addressed store, hash-verified

306
307 #[test]
308 fn encode_precision_1() {
309 let hash = geohash_encode(0.0, 0.0, 1);
310 assert_eq!(hash.len(), 1);
311 assert_eq!(hash, "s"); // origin maps to 's' cell
312 }
313
314 #[test]
315 fn encode_precision_6_default() {

Callers

nothing calls this directly

Calls 1

geohash_encodeFunction · 0.85

Tested by

no test coverage detected