Skip to main content

distanceMetres

The great-circle distance between two positions, in metres (haversine).

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { distanceMetres } from "@mapcairn/core";

function distanceMetres(from: LatLng, to: LatLng): number;

Parameters​

  • from (LatLng)
  • to (LatLng)

Returns​

number

See also​

Source: packages/core/src/draw/geo.ts:12