Date + Latitude + Longitude = UTC_offset + DST

Started by axel.hennig, May 25, 2023, 02:40:59 PM

Previous topic - Next topic

axel.hennig

Hello everybody,

I would like to add UTC_offset plus potential DST to my files (e.g. +02:00 or -04:00 or...).

There are services which offer this based on Latitude + Longitude, e.g.:


But: I haven't found a service which is also including the date. Maybe I'm wrong, but I think the date is needed for

  • DST (in Germany DST is between last Sunday in March and last Sunday in October -> different day for different years)
  • correct timezone borders for a specific date (e.g. if a governmet decides to change the timezone border within their country -> I read that Russia did this quite often in the past)

There is also the Timezone Boundary Builder project, but that one does also not include historical borders.

So my question is: Does anybody know a service (offline or online) which uses Date + Latitude + Longitude and outputs UTC_offset + DST?

digedag

Quote from: axel.hennig on May 25, 2023, 02:40:59 PM[...] service (offline or online) which uses Date + Latitude + Longitude and outputs UTC_offset + DST?
Maybe GeoSetter? (Based on GeoNames.)

2023-05-25_215134.png

Bernhard

axel.hennig

Dear Bernhard,

thanks for your reply.

I was using GeoSetter couple of years ago, but moved to IMatch to do these things. As fare as I can remember, because GeoSetter seemed to be not further developed. Right now, there is a new beta (link to beta-exe GeoSetter), but not an official new release.

I'm just wondering how GeoSetter is doing the "Zeitzone" (<- refering to your screenshot), because it is also using (as you are mentioning) GeoNames, which - as fare as I've seen - is not using a "historical UTC_offset + DST database".

axel.hennig

Thanks again Bernhard for the hint with GeoSetter.

I've checked again the GeoNames-service (should have read the documentation better) again and the timezone-api has a date-variable which returns UTC_offset + DST.

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

digedag

Dear Axel,

almost from the beginning, since I've been adding geo-information to photos, I've been using GeoSetter for that.
In my workflow, this happens even before IMatch comes into play.

Quote from: axel.hennig on May 26, 2023, 11:05:36 AM[...] seemed to be not further developed [...]
Even though version 3.5.3 is already from 2019, I still get along well with it.

Quote from: axel.hennig on May 26, 2023, 11:05:36 AM[...] there is a new beta [...]
I know that there are new beta versions, but I have not tried them.

Bernhard

Mario

Google, GeoNames and HERE offer time zone APIs which return UTC offset and DST state at a specific location and time. Except GeoNames these are all paid APIs of course (if your monthly quota is exceeded).

I have thought once to add something like this as an option to reverse geocoding (set time zone for create date and date subject created from time zone at location), but this never came up as a feature request or in a discussion (AFAIK) so I did not invest time into this. Another idea would be to integrate the same functionality into TimeWiz, in the "Set Time Zone" section.

For HERE is this only an extra parameter, for GeoNames and Google it requires a separate API call.
This should be doable, but I wonder how many users would need this?

Maybe make a feature request so we can see how many likes it gets?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook