Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

210
Vistas
Suncalc get Lat long gecode with the sun Azimuth

Hey I used Suncalc and to display result on my map I need to convert azimuth and altitude to a lat and long geocode.

https://github.com/mourner/suncalc

I want a geocode for an sunrise and sunset Azimuth. Goal : display sunrise and sunset direction to help photographer to shoot in nice context.

Unfornutualy after lot of searches I don't find any solution...

const SunCalc = require('suncalc');
const times = SunCalc.getTimes(new Date(), 51.5, -0.1);

const sunrisePos = SunCalc.getPosition(times.sunrise, 51.5, -0.1);
//=> return {altitude: -0.01289938147213956, azimuth: -2.2320632810606815}

const sunsetPos = SunCalc.getPosition(times.sunset, 51.5, -0.1);
//=> return {altitude: -0.015978167093788746, azimuth: 2.2402224959763553}

const sunriseAzimuth = sunrisePos.azimuth * 180 / Math.PI;
//=> return -127.88780561089992

const sunsetAzimuth = sunsetPos.azimuth * 180 / Math.PI;
//=> return 128.35529418970822

I want to use thoses GEOCODE (lat and long) in my leaflet map with a polyline.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda