API-Reference [suncalc.org, mooncalc.org]

This API will show you how you can write to suncalc.org or refer mooncalc.org with a link to your website.

The use of the APP is free and may be used by any.

Parameter:

DescriptionExampledefaultnecessary
latLatitudeDecDeg [float]-90° - 90°48.85826yes
lonLongitudeDecDeg [float]-180° - 180°2.29451yes
zoomGoogle MapZoomMapZoomLevel [int]1 - 211710no (set null)
dateDateDate [date]YYYY.MM.DD2015.05.11nowno (set null)
timeTimeTime 24h [time]hh:mm13:15nowno (set null)
objectlevelObject height for shadow calculationMeter [float]0.1 - 8848324.01no (set null)
maptypeGoogle MapTypeMapTypeId [int]0 - 320no (set null)0=ROADMAP, 1=SATELLITE, 2=HYBRID, 3=TERRAIN

Link-Attribute:

http://suncalc.org/#/lat,lon,zoom/date/time/objectlevel/maptype

Example (Tour Eiffel):

http://suncalc.org/#/48.85826,2.29451,17/2015.05.11/13:15/324.0/2
Test Link

Link-Generator:

lat:
lon:
zoom:
date:
time:
objectlevel:
maptype:
...
This link you can embed in your website.
Test Link
©HOFFIsoft Torsten Hoffmann 2015