Pular para o conteúdo principal

st_pointfromgeohash

info

Visualização

Este recurso está em Pré-visualização Pública.

Retorna o centro da caixa da grade geohash correspondente ao valor geohash de entrada como uma geometria de ponto 2D.

Para a função Databricks SQL correspondente, consulte a funçãost_pointfromgeohash.

Sintaxe

Python
from pyspark.databricks.sql import functions as dbf

dbf.st_pointfromgeohash(col=<col>)

Parâmetros

Parâmetro

Tipo

Descrição

col

pyspark.sql.Column ou str

Um valor de string que representa um valor de geohash.

Exemplos

Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('9q8yyh',)], ['geohash'])
df.select(dbf.st_astext(dbf.st_pointfromgeohash('geohash')).alias('result')).collect()
Output
[Row(result='POINT(-122.4261474609375 37.77374267578125)')]