หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Important
This feature is in Public Preview.
Returns the center of the geohash grid box corresponding to the input geohash value as a 2D point geometry.
For the corresponding Databricks SQL function, see st_pointfromgeohash function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.st_pointfromgeohash(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
A string value representing a geohash value. |
Examples
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()
[Row(result='POINT(-122.4261474609375 37.77374267578125)')]