haversine_distance(double lat1, double lon1, double lat2, double lon2, [const boolean mile=false])::double – return distance between two locations in km [or miles] using `haversine` formula
Usage: select latlon_distance(lat1, lon1, lat2, lon2) from …
Platforms: WhereOS, Spark, Hive
Class: hivemall.geospatial.HaversineDistanceUDF
More functions can be added to WhereOS via Python or R bindings or as Java & Scala UDF (user-defined function), UDAF (user-defined aggregation function) and UDTF (user-defined table generating function) extensions. Custom libraries can be added on via Settings-page or installed from WhereOS Store.