GEO_TO_H3
Learn how to use the GEO_TO_H3 utility function in PlaidCloud Lakehouse. Returns the H3 index of the hexagon cell where the given location resides.
This section provides reference information for the geography functions in PlaidCloud Lakehouse. These functions are based on the very innovate H3 system developed by Uber to better calculate geographic relationships. The explanation of H3 can be found here.
Learn how to use the GEO_TO_H3 utility function in PlaidCloud Lakehouse. Returns the H3 index of the hexagon cell where the given location resides.
Learn how to use the GEOHASH_DECODE utility function in PlaidCloud Lakehouse. Converts a Geohash-encoded string into latitude/longitude coordinates.
Learn how to use the GEOHASH_ENCODE utility function in PlaidCloud Lakehouse. Converts a pair of latitude and longitude coordinates into a Geohash-encoded...
Learn how to use the H3_CELL_AREA_M2 utility function in PlaidCloud Lakehouse. Returns the exact area of specific cell in square meters. Includes syntax and...
Learn how to use the H3_CELL_AREA_RADS2 utility function in PlaidCloud Lakehouse. Returns the exact area of specific cell in square radians.
Learn how to use the H3_DISTANCE utility function in PlaidCloud Lakehouse. Returns the grid distance between the the given two H3 indexes. Includes syntax...
Learn how to use the H3_EDGE_ANGLE utility function in PlaidCloud Lakehouse. Returns the average length of the H3 hexagon edge in grades. Includes syntax...
Learn how to use the H3_EDGE_LENGTH_KM utility function in PlaidCloud Lakehouse. Returns the average hexagon edge length in kilometers at the given resolution.
Learn how to use the H3_EDGE_LENGTH_M utility function in PlaidCloud Lakehouse. Returns the average hexagon edge length in meters at the given resolution.
Learn how to use the H3_EXACT_EDGE_LENGTH_KM utility function in PlaidCloud Lakehouse. Computes the length of this directed edge, in kilometers.
Learn how to use the H3_EXACT_EDGE_LENGTH_M utility function in PlaidCloud Lakehouse. Computes the length of this directed edge, in meters. Includes syntax...
Learn how to use the H3_EXACT_EDGE_LENGTH_RADS utility function in PlaidCloud Lakehouse. Computes the length of this directed edge, in radians.
Learn how to use the H3_GET_BASE_CELL utility function in PlaidCloud Lakehouse. Returns the base cell number of the given H3 index. With syntax and examples.
Learn how to use the H3_GET_DESTINATION_INDEX_FROM_UNIDIRECTIONAL_EDGE utility function in PlaidCloud Lakehouse. Returns the destination hexagon index from...
Learn how to use the H3_GET_FACES utility function in PlaidCloud Lakehouse. Finds all icosahedron faces intersected by the given H3 index. Includes syntax...
Learn how to use the H3_GET_INDEXES_FROM_UNIDIRECTIONAL_EDGE utility function in PlaidCloud Lakehouse. Returns the origin and destination hexagon indexes...
Learn how to use the H3_GET_ORIGIN_INDEX_FROM_UNIDIRECTIONAL_EDGE utility function in PlaidCloud Lakehouse. Returns the origin hexagon index from the...
Learn how to use the H3_GET_RESOLUTION utility function in PlaidCloud Lakehouse. Returns the resolution of the given H3 index. Includes syntax and examples.
Learn how to use the H3_GET_UNIDIRECTIONAL_EDGE utility function in PlaidCloud Lakehouse. Returns the edge between the given two H3 indexes.
Learn how to use the H3_GET_UNIDIRECTIONAL_EDGE_BOUNDARY utility function in PlaidCloud Lakehouse. Returns the coordinates defining the unidirectional edge.
Learn how to use the H3_GET_UNIDIRECTIONAL_EDGES_FROM_HEXAGON utility function in PlaidCloud Lakehouse. Returns all of the unidirectional edges from the...
Learn how to use the H3_HEX_AREA_KM2 utility function in PlaidCloud Lakehouse. Returns the average hexagon area in square kilometers at the given resolution.
Learn how to use the H3_HEX_AREA_M2 utility function in PlaidCloud Lakehouse. Returns the average hexagon area in square meters at the given resolution.
Learn how to use the H3_HEX_RING geo function in PlaidCloud Lakehouse. Returns the hollow ring of hexagons at grid distance k from a given origin index.
Learn how to use the H3_INDEXES_ARE_NEIGHBORS utility function in PlaidCloud Lakehouse. Returns whether or not the provided H3 indexes are neighbors.
Learn how to use the H3_IS_PENTAGON utility function in PlaidCloud Lakehouse. Checks if the given H3 index represents a pentagonal cell. Includes syntax and...
Learn how to use the H3_IS_RES_CLASS_III utility function in PlaidCloud Lakehouse. Checks if the given H3 index has a resolution with Class III orientation.
Learn how to use the H3_IS_VALID utility function in PlaidCloud Lakehouse. Checks if the given H3 index is valid. Includes syntax and examples.
Learn how to use the H3_K_RING utility function in PlaidCloud Lakehouse. Returns an array containing the H3 indexes of the k-ring hexagons surrounding the...
Learn how to use the H3_LINE utility function in PlaidCloud Lakehouse. Returns the line of indexes between the given two H3 indexes. With syntax and examples.
Learn how to use the H3_NUM_HEXAGONS utility function in PlaidCloud Lakehouse. Returns the number of unique H3 indexes at the given resolution.
Learn how to use the H3_TO_CENTER_CHILD utility function in PlaidCloud Lakehouse. Returns the center child index at the specified resolution.
Learn how to use the H3_TO_CHILDREN utility function in PlaidCloud Lakehouse. Returns the indexes contained by h3 at resolution child_res. Includes syntax...
Learn how to use the H3_TO_GEO utility function in PlaidCloud Lakehouse. Returns the longitude and latitude corresponding to the given H3 index.
Learn how to use the H3_TO_GEO_BOUNDARY utility function in PlaidCloud Lakehouse. Returns an array containing the longitude and latitude coordinates of the...
Learn how to use the H3_TO_PARENT utility function in PlaidCloud Lakehouse. Returns the parent index containing the h3 at resolution parent_res.
Learn how to use the H3_TO_STRING utility function in PlaidCloud Lakehouse. Converts the representation of the given H3 index to the string representation.
Learn how to use the H3_UNIDIRECTIONAL_EDGE_IS_VALID utility function in PlaidCloud Lakehouse. Determines if the provided H3Index is a valid unidirectional...
Learn how to use the POINT_IN_POLYGON utility function in PlaidCloud Lakehouse. Calculates whether a given point falls within the polygon formed by joining...
Learn how to use the STRING_TO_H3 utility function in PlaidCloud Lakehouse. Converts the string representation to H3 (uint64) representation.