How accurate is the sun position data?
Our calculations are based on established astronomical algorithms and are accurate to within 0.01 degrees. This precision is suitable for professional applications like solar panel optimization and architectural shadow analysis.
What coordinates format do you accept?
We accept decimal degrees for latitude (-90 to 90) and longitude (-180 to 180). For example, New York City is lat=40.7128, lon=-74.0060.
Can I get sun position for a specific date and time?
Yes, you can pass an optional datetime parameter to get the sun position for any date and time, past or future. If not specified, we return the current sun position.
What is the difference between altitude and azimuth?
Altitude is the angle of the sun above the horizon (0° at horizon, 90° directly overhead). Azimuth is the compass direction to the sun (0° north, 90° east, 180° south, 270° west).
Do you provide sunrise and sunset times?
The Sun Position API focuses on the current position. For sunrise/sunset times, use our dedicated Sunrise/Sunset API which provides detailed twilight data including civil, nautical, and astronomical twilight times.
Is the API suitable for solar energy calculations?
Absolutely. Our sun position data is used by solar energy companies to optimize panel angles, predict energy generation, and plan installations. The altitude and azimuth data is perfect for these calculations.
How do I calculate shadow length?
We provide a shadowLength field which gives the relative shadow multiplier based on sun altitude. Multiply an object's height by this value to get its shadow length. When the sun is at 45°, shadows equal object height.
Does the API account for atmospheric refraction?
Yes, our calculations include standard atmospheric refraction corrections, which is why the sun appears slightly higher near the horizon than its geometric position.