Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
Suncalc obtiene el gecode de Lat long con el azimut del sol

Oye, utilicé Suncalc y para mostrar el resultado en mi mapa, necesito convertir el acimut y la altitud en un código geográfico de latitud y longitud.

https://github.com/mourner/suncalc

Quiero un código geográfico para un Azimut de amanecer y atardecer. Objetivo: mostrar la dirección del amanecer y el atardecer para ayudar al fotógrafo a disparar en un contexto agradable.

Desafortunadamente después de muchas búsquedas no encuentro ninguna solución...

 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

Quiero usar esos GEOCODE (lat y long) en mi mapa de folleto con una polilínea.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!