Function oldnav_lib::navdata::geohash::hash_precision
[−]
[src]
pub fn hash_precision(geohash: u64) -> u8
Get the precision value for an integer geohash.
Example
length of 4: ```
use oldnav_lib::navdata::geohash::*;
let gh = hash_from_string("1010").unwrap(); assert_eq!(4, hash_precision(gh)); ```
length of 8: ```
use oldnav_lib::navdata::geohash::*;
let gh = hash_from_string("00000000"); assert_eq!(8, hash_precision(gh)); ```