@mediarithmics/plugins-nodejs-sdk
Version:
This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate
13 lines (12 loc) • 452 B
TypeScript
/**
* Calculate the distance in Km
* Sourced from StackOverflow (https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula)
* This is the 'fastest' algorithm apparently
*
* @param lat1
* @param lon1
* @param lat2
* @param lon2
* @returns number The distance in km
*/
export declare const getDistanceFromLatLonInKm: (lat1: number, lon1: number, lat2: number, lon2: number) => number;