UNPKG

tsgeo

Version:

TsGeo provides abstractions to geographical coordinates (including support for different ellipsoids) and allows you to calculate geographical distances between coordinates with high precision.

18 lines (17 loc) 488 B
/** * Interface for Distance Calculator Classes * * @author clemdesign <contact@clemdesign.fr> * @license https://opensource.org/licenses/MIT * @link */ import { Coordinate } from "../Coordinate"; export interface DistanceInterface { /** * @param {Coordinate} point1 * @param {Coordinate} point2 * * @return float distance between the two coordinates in meters */ getDistance(point1: Coordinate, point2: Coordinate): number; }