Skip to main content

h3_encode

Function h3_encode 

Source
pub fn h3_encode(lng: f64, lat: f64, resolution: u8) -> Option<u64>
Expand description

Encode a (longitude, latitude) coordinate to an H3 cell index.

Resolution 0-15. Default 7 (~5.1 km² cells). Returns the H3 index as a u64.