メインコンテンツまでスキップ

st_pointfromgeohash

備考

プレビュー

この機能は パブリック プレビュー段階です。

入力ジオハッシュ値に対応するジオハッシュ グリッド ボックスの中心を 2D ポイント ジオメトリとして返します。

対応する Databricks SQL 関数については、 st_pointfromgeohash関数を参照してください。

構文

Python
from pyspark.databricks.sql import functions as dbf

dbf.st_pointfromgeohash(col=<col>)

パラメーター

パラメーター

Type

説明

col

pyspark.sql.Column または str

ジオハッシュ値を表す文字列値。

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)')]