[][src]Function libh3::h3_get_resolution

pub fn h3_get_resolution(h3: H3Index) -> Resolution

Return the resolution of a H3 index

use libh3::{GeoCoord, degs_to_rads, geo_to_h3, h3_get_resolution };
let coords = GeoCoord::new(
  degs_to_rads(40.689167),
  degs_to_rads(-74.044444),
);

let v = geo_to_h3(&coords, 10);
assert_eq!(h3_get_resolution(v.unwrap()), 10);