Calculate nautical distance between two geographic points #' This function calculates the great-circle distance between two points on the Earth's surface #' given their latitude and longitude using the Haversine formula.
Create a WKT linestring from two points This function creates a WKT (Well-Known Text) representation of a linestring connecting two points. Each point is represented as a list containing 'lon' and 'lat' fields, and optionally a 'z' field for elevation (a negative number representing depth).
rbind, but allow different columns names Make a union of the rows filling missing columns with NA https://stackoverflow.com/questions/3402371/combine-two-data-frames-by-rows-rbind-when-they-have-different-sets-of-columns