# Zmanim calculation with elevation

Hi

I'm using this API https://www.npmjs.com/package/@hebcal/core

I want to know if there is a way to add elevation in addition to lat, long coordinates for zmanim calculation

Thanks

### Answer

Hi, thanks for using the Hebcal JavaScript library.

Zmanim, Candle-lighting and Havdalah times are derived from sunset times, which are approximated from a location (latitude, longitude) and day of year. There is no way to include elevation in the Hebcal zmanim calculations because the underlying solar calculation algorithm doesn't use elevation.

The NOAA solar algorithm claims accuracy within 2 minutes except at extreme northern or southern latitudes. Adding elevation often changes the sunset calculation by 1 minute or less, so this is within the expected margin of error.

Customer support service by UserEcho

Hi, thanks for using the Hebcal JavaScript library.

Zmanim, Candle-lighting and Havdalah times are derived from sunset times, which are approximated from a location (latitude, longitude) and day of year. There is no way to include elevation in the Hebcal zmanim calculations because the underlying solar calculation algorithm doesn't use elevation.

The NOAA solar algorithm claims accuracy within 2 minutes except at extreme northern or southern latitudes. Adding elevation often changes the sunset calculation by 1 minute or less, so this is within the expected margin of error.