GEO_TO_H3 (Lakehouse v1)
Retorna o índice H3 da célula hexagonal onde fica a localização informada. Um retorno igual a 0 significa que ocorreu um erro.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.geo_to_h3(lon, lat, res)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.geo_to_h3(37.79506683, 55.71290588, 15)
┌──────────────────────────────────────────────┐│ func.geo_to_h3(37.79506683, 55.71290588, 15) │├──────────────────────────────────────────────┤│ 644325524701193974 │└──────────────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”GEO_TO_H3(lon, lat, res)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT GEO_TO_H3(37.79506683, 55.71290588, 15);
┌─────────────────────────────────────────┐│ geo_to_h3(37.79506683, 55.71290588, 15) │├─────────────────────────────────────────┤│ 644325524701193974 │└─────────────────────────────────────────┘