UNPKG

@mint-ui/map

Version:

- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported

39 lines (38 loc) 1.54 kB
declare class PositionMirror { lat: number; lng: number; constructor(lat: number, lng: number); } export interface NextPositionContext { pos1: PositionMirror; pos2: PositionMirror; velocityKmh: number; elapsedTimeMs: number; totalDistance: number; currDistance: number; distanceRemain: number; prevPos2: PositionMirror; prevVelocityKmh: number; vPerMs: number; nextPos: PositionMirror; } export declare class GeoCalulator { private static readonly EARTH_EQUATORIAL_RADIUS; private static readonly EARTH_EQUATORIAL_RADIUS_KM; private static readonly EARTH_ECCENTRICITY; private static readonly METER_VALUE_PER_LATITUDE; private static readonly LATITUDE_POSITION_VALUE_PER_METER; static computeDistanceKiloMeter(pos1: PositionMirror, pos2: PositionMirror): number; private static deg2rad; static convertMeterToLatitudeValue(meter: number): number; static convertLatitudeToMeterValue(lat: number): number; static convertLongitudeToMeterValue(lat: number, lng: number): number; private static readonly CACHE_OF_LNG_PER_METER; private static getCacheUnitOfLongitudeValueWithLatitudeInMeter; private static getCacheOfLongitudeValueWithLatitudeInMeter; private static setCacheOfLongitudeValueWithLatitudeInMeter; static calculateLongitudeValueWithLatitudeInMeter(lat: number): number; private static readonly MS_FROM_HOUR; static computeNextPositionAndDistances(context: NextPositionContext): NextPositionContext; } export {};