UNPKG

sun-horizon

Version:

Horizon profile and sun path form a lat lng point

13 lines (12 loc) 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const geo_point_1 = require("geo-point"); function getLocationDestination(from, azimuth, distance) { const origin = new geo_point_1.default(from.lat, from.lng); const destination = origin.calculateDestination(distance, azimuth); return { lat: destination.latitude, lng: destination.longitude }; } exports.getLocationDestination = getLocationDestination;