UNPKG

@yandex/ymaps3-types

Version:

Types for ymaps3 maps library

15 lines (14 loc) 564 B
import type { UnitType } from "."; /** * Converts the distance in one set of units to another set of units * @param distance - non-rounded distance in meters * @param unit - unit of measurement to be converted to * @returns converted distance value */ export declare function convertDistanceToUnit(distance: number, unit: UnitType): number; /** * Rounds off the integer distance to the nearest round number * @param rawDistance - unrounded distance * @returns Rounded distance */ export declare function floorToNearestTenths(rawDistance: number): number;