I know the answer is possible but the accuracy is the main question.Any idea?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Well the world is divided into about 24 timezones (there’s a few odd quirks with 1/2 hr timezones as well) and two hemispheres, where daylight savings are reversed (Summer in the southern hemisphere is Winter in the Northern), so identifying daylight savings, you can effectively divide the world into 48 time segments (not all countries use daylight savings, so it’s not perfect, but gives you a rough idea). Of course, you’ll need a little bit of javascript to read these settings from the user’s PC.
The world surface is 510,072,000 km2, so by using timestamp based locations, you can narrow a user down to an area of about 10,626,500km2. As a comparison Canada (the second largest country in the world) has an area of 9,984,670km2. Mainland USA is split across 5 timezones (including Alaska), so any American user would be limited to an accuracy of 5 cities across the entire country… you can’t tell the difference between New York and Miami, or between San Francisco and Seattle. Using timezones, ou couldn’t tell if I was in London, Lisbon or Dakar.
If that’s an accurate enough guess for you, then all well and good. But GeoIP location gives you a far better accuracy, and libraries already exist to use that method… so why not use it?