Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8901069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:15:27+00:00 2026-06-15T01:15:27+00:00

Is there a function that will return the Time Zone (or an offset from

  • 0

Is there a function that will return the Time Zone (or an offset from some “fulcrum” such as GMT or UTC) given the coordinates?

IOW, I’d like to (assuming “TimeZoneType” is a class or enum or so):

TimeZoneType timeZone = getTimeZoneForCoordinates(<latitude>, <longitude>);

-or:

int timeZoneDifferential = getTimeZoneOffsetFromUTCForCoordinates(<latitude>, <longitude>);

I was torn between posting this question here an on gis.stackexchange. If advised to, I’ll delete this question and post it there…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:15:29+00:00Added an answer on June 15, 2026 at 1:15 am

    A simple question, a big answer:

    There are few companies that are able to do that. The iphone was the first device that I know that could determine the timeZone from geo position. Even my TomTom Navi cannot do that and I have to manually enter the TimeZone offset.

    Here how you would do that.

    1. Buy for some xxx euro navteq “WorldMaps”, or go cheaper using OpenStreetMap.
      Some conversion later you will have the polygons for each country of the world.
      Such country will typically have 50.000 points or more representing the country border.

    2. Once you have that polygons you have to write a function that gives the countryPolygonId (or countryID) for given (lat/lon).

      (countryId = findCountry(lat, lon); // using a point in polygon method

    3. Once you have the country, you must find the next big city:
      You need to have a list of cities that are supported by the TimeZone module of your system (I think there is a norm for that, but I am not sure.)

    Then you have to translate countryId, cityId to a String like “Austria/Vienna”.
    This is your TimeZone and you cann initialize with TimeZone zt = new TimeZone(“Austria/Vienna”);

    I hope this was interesting, but this is very demanding to implement, and to get the neccessary data for that task.
    I have done steps 1, and 2 for a different use case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are functions to like is_single() that will return data about the
Occasionally I will know that there is a .NET Framework function that returns a
Is there a platform function that will do the following? convertBase :: (Num a,
Is there a way to set up a function that will get the user
I'm trying to write a function that will: If there is no region selected,
Is there some function that returns the parent directory of a file in Perl?
I'm just trying to have simply RndInt(limit) function that will return random numbers with
Is there a command or one-line strategy in MATLAB that will return all the
Im trying to create a function, that will return a mysql query, which i
Is there any function that does the inverse operation of array_diff() ? I mean,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.