Page History
...
Code Block |
---|
point = struct(lit(37.5680423), lit(126.8264086)) # 5백미터 이내에놈을 보여죠... nearNaver = tbl_NHotel.filter(great_circle_udf(point, struct(tbl_NHotel.latitude, tbl_NHotel.longitude)) < 0.055 ) nearNaver.show(10) 결과 +-------+-----+-------------+----------+-----------+-------+-------+ | id|price| goodsname| latitude| longitude|region1|region2| +-------+-----+-------------+----------+-----------+-------+-------+ |3054798|86478|라마다 앙코르 서울 마곡|37.5680423|126.8264086| 서울| 강서구| +-------+-----+-------------+----------+-----------+-------+-------+ |