Skip to content

Geography Helpers

Utility functions for working with geography operations.

FunctionDescription
distanceGreat-circle distance between two WGS84 points, in kilometres (haversine formula, mean Earth radius of 6371 km).
isWithinDistanceWhether a point lies within a radius of a center, the border included.