Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to get timezone of user based on area code

Tags:

timezone

php

I'm attempting to get a timezone of a user based on area code information that they provided. I discovered the following resource on maxmind:

http://geolite.maxmind.com/download/geoip/api/php/timezone/

I suspect that I could use this with another api that provides the state that an area code belongs to. I'm looking for a simple REST API that provides this info - or a robust scraping routine that achieve the same results.

Thanks in advance!

like image 771
niyogi Avatar asked Nov 15 '25 02:11

niyogi


1 Answers

I'd caution against this approach. A lot of my friends (those in the 18 to 30 demographic) move across the country and keep their old cell phone numbers. The area code is less and less an indication of current location and more and more an indication of where someone lived at one time. With google voice accounts people might get an area code because they like the number and have never lived there!

like image 175
Will Shaver Avatar answered Nov 17 '25 17:11

Will Shaver