pub fn h3_distance(origin: H3Index, end: H3Index) -> Result<i32, ()> {
    unsafe {
        let r = libh3_sys::h3Distance(origin, end);
        if r < 0 {
            Err(())
        } else {
            Ok(r)
        }
    }
}
/// Get the grid distance between two hex indexes. This function may fail
/// to find the distance between two indexes if they are very far apart or
/// on opposite sides of a pentagon.
/// # Arguments
///
/// * `origin` - The starting H3 index
/// * `end` - The ending H3 index
///
/// ```
/// use libh3::h3_distance;
/// assert_eq!(h3_distance(0x8a2a1072b4a7fff, 0x8a2a1072b58ffff), Ok(1));
/// ```
Get the grid distance between two hex indexes. This function may fail
to find the distance between two indexes if they are very far apart or
on opposite sides of a pentagon.
Get the grid distance between two hex indexes . This function may fail to find the distance between two indexes if they are very far apart or on opposite sides of a pentagon .
pub fn h3_distance(origin: H3Index, end: H3Index) -> Result<i32, ()> {
    unsafe {
        let r = libh3_sys::h3Distance(origin, end);
        if r < 0 {
            Err(())
        } else {
            Ok(r)
        }
    }
}
pub fn h3_distance ( origin : H3Index , end : H3Index ) -> Result < i32 , ( ) > { unsafe { let r = libh3_sys :: h3Distance ( origin , end ) ; if r < 0 { Err ( ( ) ) } else { Ok ( r ) } } }
Get the grid distance between two hex indexes.
Get the grid distance between two hex indexes .
origin
H3Index
end
H3Index
origin
H3Index
end
H3Index