DB
FunctionsGeospatial

Geospatial

60 Geospatial functions in the NYXDB native function registry, with signatures, briefs, and measured medians where available.

60 functions in the geospatial family. Each name links to its page; marks the variadic argument list (the engine declares no named parameters). A Measured value appears only where a benchmark corpus case joins by name (server-class hardware, median).

FunctionTypeDescriptionMeasured
geo_distance(…) → Float64scalarDistance between two geographic points.
geohash_decode(…) → StringscalarDecode a geohash to coordinates.
geohash_encode(…) → StringscalarEncode coordinates as a geohash.
geohashes_in_box(…) → StringscalarGeohashes covering a bounding box.
great_circle_angle(…) → Float64scalarGreat-circle angle.
great_circle_distance(…) → Float64scalarGreat-circle distance.
h3_cell_area_m2(…) → Float64scalarH3 cell area (m2).
h3_cell_area_rads2(…) → Float64scalarH3 cell area (rads2).
h3_distance(…) → Int64scalarH3 grid distance.
h3_edge_angle(…) → Float64scalarH3 edge angle.
h3_edge_length_km(…) → Float64scalarH3 edge length (km).
h3_edge_length_m(…) → Float64scalarH3 edge length (m).
h3_exact_edge_length_km(…) → Float64scalarH3 edge length (km) (exact).
h3_exact_edge_length_m(…) → Float64scalarH3 edge length (m) (exact).
h3_exact_edge_length_rads(…) → Float64scalarH3 edge length (rads) (exact).
h3_get_base_cell(…) → Int64scalarBase cell number.
h3_get_destination_index_from_unidirectional_edge(…) → UInt64scalarH3 unidirectional edge operation.
h3_get_faces(…) → StringscalarIcosahedron faces for a cell.
h3_get_indexes_from_unidirectional_edge(…) → StringscalarH3 unidirectional edge operation.
h3_get_origin_index_from_unidirectional_edge(…) → UInt64scalarH3 unidirectional edge operation.
h3_get_pentagon_indexes(…) → StringscalarAll pentagon cells at a resolution.
h3_get_res0_indexes(…) → StringscalarAll resolution-0 cells.
h3_get_resolution(…) → Int64scalarH3 resolution.
h3_get_unidirectional_edge(…) → UInt64scalarH3 unidirectional edge operation.
h3_get_unidirectional_edge_boundary(…) → StringscalarH3 unidirectional edge operation.
h3_get_unidirectional_edges_from_hexagon(…) → StringscalarH3 unidirectional edge operation.
h3_hex_area_km2(…) → Float64scalarAverage H3 hexagon area (km²).
h3_hex_area_m2(…) → Float64scalarAverage H3 hexagon area (m²).
h3_hex_ring(…) → StringscalarH3 ring around a cell.
h3_indexes_are_neighbors(…) → BoolscalarTest whether two cells are neighbors.
h3_is_pentagon(…) → BoolscalarTest whether a cell is a pentagon.
h3_is_res_class_iii(…) → BoolscalarTest whether a cell is Class III.
h3_is_valid(…) → BoolscalarValidate H3 index/edge.
h3_line(…) → StringscalarH3 grid path.
h3_num_hexagons(…) → UInt64scalarNumber of cells at a resolution.
h3_point_dist_km(…) → Float64scalarDistance between two points (km).
h3_point_dist_m(…) → Float64scalarDistance between two points (m).
h3_point_dist_rads(…) → Float64scalarDistance between two points (rads).
h3_polygon_to_cells(…) → StringscalarCover a polygon with H3 cells.
h3_to_center_child(…) → UInt64scalarH3 center child.
h3_to_children(…) → StringscalarH3 child cells.
h3_to_geo(…) → StringscalarH3 cell center coordinates.
h3_to_geo_boundary(…) → StringscalarH3 cell boundary.
h3_to_parent(…) → UInt64scalarH3 parent cell.
h3_to_string(…) → StringscalarRender H3 index as a string.
h3_unidirectional_edge_is_valid(…) → BoolscalarValidate H3 index/edge.
s2_cap_contains(…) → BoolscalarS2 spherical cap contains.
s2_cap_union(…) → StringscalarS2 spherical cap union.
s2_cells_intersect(…) → BoolscalarTest S2 cell intersection.
s2_get_neighbors(…) → StringscalarS2 cell neighbors.
s2_rect_add(…) → StringscalarS2 rectangle add.
s2_rect_contains(…) → BoolscalarS2 rectangle contains.
s2_rect_intersection(…) → StringscalarS2 rectangle intersection.
s2_rect_union(…) → StringscalarS2 rectangle union.
s2_to_geo(…) → StringscalarS2 cell center coordinates.
st_line_from_wkb(…) → StringscalarParse line from WKB.
st_m_line_from_wkb(…) → StringscalarParse m line from WKB.
st_m_poly_from_wkb(…) → StringscalarParse m poly from WKB.
st_point_from_wkb(…) → StringscalarParse point from WKB.
st_poly_from_wkb(…) → StringscalarParse poly from WKB.