UDF which can calculate distance between 2 point is helpful to analyze Geo data.
- Calculating distance between 2 points: (lat1,long1)~(lat2,long2)
This is now possible using the new Presto geospatial functionality provided in the version we now give our customers.
You can learn more about this functionality here: https://prestodb.io/docs/current/functions/geospatial.html
At this time, we do not support setting distance output to be in meters (requested in one of the comments), but we'll consider as a future improvements.