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

Function encode_precision_12

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

Source from the content-addressed store, hash-verified

321
322 #[test]
323 fn encode_precision_12() {
324 let hash = geohash_encode(139.6917, 35.6895, 12); // Tokyo
325 assert_eq!(hash.len(), 12);
326 }
327
328 #[test]
329 fn decode_invalid_chars() {

Callers

nothing calls this directly

Calls 1

geohash_encodeFunction · 0.85

Tested by

no test coverage detected