0
Answered

How to get zmanim from lat and long only

davidamiga14 9 months ago updated by Michael J. Radwin 9 months ago 3

Hi

I want to get zmanim infromation for a location but I only have the lat and long of the user

How can I use the API to get all information just with that?

In the documentation I found that to get zmanim I need the geolocation, but to get that I need the name and timeZoneId, but I don't have those 

Yes this could work

So I just need to create a GeoLocation with this id and then generate zmanim with that geoloc?

Answered

Yes, that should work!

Under review

Are you building your app in JavaScript? There is a great API that estimates timeZoneID from latitude and longitude

https://www.npmjs.com/package/geo-tz

The same API may be available in other programming languages