Skip to main content

roundForLookup

Rounds a position to LOOKUP_DECIMAL_PLACES decimal places, so a third-party service is sent roughly 11 m of precision, not the exact point the user chose. Returns a new object.

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

Signature​

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

function roundForLookup(position: LatLng): LatLng;

Parameters​

  • position (LatLng)

Returns​

LatLng

See also​

Source: packages/core/src/spatial/lookupPosition.ts:27