UNPKG

calculate-distance-between-coordinates

Version:
9 lines (8 loc) 324 B
export declare type Coordinate = { lat: number; lon: number; }; declare type Unit = 'km' | 'mile'; export declare function getDistanceBetweenTwoPoints(cord1: Coordinate, cord2: Coordinate, unit?: Unit): number; export declare function getTotalDistance(coordinates: Coordinate[], unit?: Unit): string | 0; export {};