I have the following dataframe o spark :
__________________________
│Longitude │latitude |
├────────────┼─────────────┼
| -7.07378166|33.826661 |
└────────────┴─────────────┴
I want to apply the ST_Geomfromtext from GeoSpark , but I don't know how to do it
I tried the following code , but id doesn't work for me
Dataset<Row> dataframe = df.withColumn("ST_Geomfromtext ", ST_GeomFromText(col("Longitude"),col("Latitude")));
I need your help .
Thank you