Skip navigation

Hi,

I have created this script for getting timezone by providing a particular latitude and longitude,

The idea is I crated timezone polygons for US and using Point in Polygon algorithm we can check the given latitude and longitude falls under which timezone.

Currently the sql dump I created for only USA, we can add polygons for additional countries.

for code: https://github.com/prabhubng/Timezone-US

Thanks.

-Prabhu

Advertisements

2 Comments

  1. can it do reverse?

    meaning if I give a time zone can it identify all longitude’s with the same time zone?

    • Yes, the lat lng data stored as polygons, so we can return polygon points.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: