java - algorithm for getting time zone from geo coordinates -


I want to write an app where users can point to any location on the map (not only cities) and in that place You can get timezone. / P>

What data structure (the app will not have internet connectivity) and algorithm should be used? Where can I get the required data (I am more vigilant after dividing the map in 24 rectangles)?

I will write my app in Java. Given that time zones are based only on physical entities rather than calculating physical latitude / lawn,

I will create a data structure that coordinates more latitudes / lawn political entities (country and province / state) than matraged polygons, and then there is a separate structure in which political institutions and current dates are in the timezone offset Has been swapped.

In this way, you can not only avoid redundancy, but also:

  1. You can display the DST reference information in a specific coordinates, and < / Li>
  2. When a country changes the rules, when daylight saving starts and ends, then you have a place to update.

However, given the highly irregular shape of some limitations, you will need a large data structure for accuracy, depending on your solution, input and / or display.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -