Retrieve a city for a given coordinates in the format [longitude, latitude] . An OPENCAGE_API_KEY variable is necessary and can be obtained for free on their website .
Implementation of the Haversine formula for calculating the great circle distance between two points on a sphere. If no radius is provided, the average Earth’s radius is used with a value of 6371km.