h3o 0.11.0

A Rust implementation of the H3 geospatial indexing system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;
use core::convert::TryFrom;

#[test]
fn disk_distance_safe_is_fused() {
    let origin = CellIndex::try_from(0x85002c27fffffff).unwrap();
    let destination = CellIndex::try_from(0x85015337fffffff).unwrap();
    let mut iter = GridPathCells::new(origin, destination).unwrap();

    for _ in 0..9 {
        assert!(iter.next().is_some());
    }
    for _ in 0..9 {
        assert!(iter.next().is_none());
    }
}