Crate xs_h3

Crate xs_h3 

Source
Expand description

xs-h3 is a Rust implementation of Uber’s H3 geospatial indexing library.

This library aims to provide a safe and performant H3 experience in Rust.

Re-exports§

pub use constants::MAX_CELL_BNDRY_VERTS;
pub use latlng::degs_to_rads;
pub use latlng::get_hexagon_area_avg_km2;
pub use latlng::get_hexagon_area_avg_m2;
pub use latlng::get_hexagon_edge_length_avg_km;
pub use latlng::get_hexagon_edge_length_avg_m;
pub use latlng::great_circle_distance_km;
pub use latlng::great_circle_distance_m;
pub use latlng::great_circle_distance_rads;
pub use latlng::rads_to_degs;
pub use types::BBox;
pub use types::CellBoundary;
pub use types::ContainmentMode;
pub use types::CoordIJ;
pub use types::CoordIJK;
pub use types::FaceIJK;
pub use types::GeoLoop;
pub use types::GeoPolygon;
pub use types::H3Error;
pub use types::H3Index;
pub use types::LatLng;
pub use types::Vec2d;
pub use types::Vec3d;
pub use types::H3_NULL;
pub use h3_index::get_resolution;
pub use h3_index::inspection::get_base_cell_number;
pub use h3_index::inspection::get_icosahedron_faces;
pub use h3_index::inspection::get_num_cells;
pub use h3_index::inspection::get_pentagons;
pub use h3_index::inspection::get_res0_cells;
pub use h3_index::inspection::is_pentagon;
pub use h3_index::inspection::is_valid_cell;
pub use h3_index::inspection::max_face_count;
pub use h3_index::inspection::pentagon_count;
pub use h3_index::string_conv::h3_to_string;
pub use h3_index::string_conv::h3_to_string_alloc;
pub use h3_index::string_conv::string_to_h3;
pub use hierarchy::cell_to_center_child;
pub use hierarchy::cell_to_child_pos;
pub use hierarchy::cell_to_children;
pub use hierarchy::cell_to_children_size;
pub use hierarchy::cell_to_parent;
pub use hierarchy::child_pos_to_cell;
pub use hierarchy::compact_cells;
pub use hierarchy::uncompact_cells;
pub use hierarchy::uncompact_cells_size;
pub use indexing::cell_to_boundary;
pub use indexing::cell_to_lat_lng;
pub use indexing::lat_lng_to_cell;
pub use measures::cell_area_km2;
pub use measures::cell_area_m2;
pub use measures::cell_area_rads2;
pub use measures::exact_edge_length_km;
pub use measures::exact_edge_length_m;
pub use measures::exact_edge_length_rads;
pub use regions::cells_to_multi_polygon;
pub use regions::max_polygon_to_cells_size;
pub use regions::polygon_to_cells;
pub use regions::MultiPolygonRust;
pub use regions::PolygonRust;
pub use traversal::are_neighbor_cells;
pub use traversal::grid_disk;
pub use traversal::grid_disk;
pub use traversal::grid_disk_distances;
pub use traversal::grid_distance;
pub use traversal::grid_path_cells;
pub use traversal::grid_path_cells_size;
pub use traversal::grid_ring_unsafe;
pub use traversal::max_grid_disk_size;

Modules§

base_cells
bbox
constants
H3 core library constants.
coords
h3_index
hierarchy
indexing
iterators
latlng
local_ij
math
measures
polygon
regions
traversal
types
Core H3 data structures.