Solved

desktop user/visitor location accuracy?

Posted on 2012-04-03
5
301 Views
Last Modified: 2012-04-04
Hi

Is it possible to get the location of a visitor to your website with a good degree of accuracy?

I would like to develop a poll which only allows people from a set area to vote.... I know this will be easy enough to get around (you could live 100 miles away and drive to the restricted area then you would be able to vote on your smartphone, laptop, cybercafe etc) but I think it would be good enough for the purpose I have.

Is it possible to get a users location when they are on a desktop/laptop computer?

Cheers

CD
0
Comment
Question by:cycledude
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 

Author Comment

by:cycledude
ID: 37799889
I just tested the 'my location' on google maps, and it funked out by c. 15 miles.... is this as good as it gets for desktop/laptop computers?

is geolocation only good for mobile devices?
0
 
LVL 29

Assisted Solution

by:Olaf Doschke
Olaf Doschke earned 100 total points
ID: 37799933
yes, your PC has no gps device in it, has it? Geolocation via IP adress is unprecise by nature, an IP adress has even less a hint on a location as a phone number via it's area codes. Only static IP adresses can be located via their registered whois information, for example. But roaming IPs used by ISPs can be for your pc now and could be used for any other pc in the world tomorrow.

Also see http://en.wikipedia.org/wiki/Geolocation
Geolocation usually works by automatically looking up an IP address on a WHOIS service and retrieving the registrant's physical address.[1]
IP address geolocation data can include information such as country, region, city, postal/zip code.[2], latitude, longitude and timezone.[3]

Bye, Olaf.
0
 

Author Comment

by:cycledude
ID: 37800100
thanks olaf
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 400 total points
ID: 37800764
Have a look at this page.  
http://www.landonbaseball.com/site_visitors.php

The map is drawn from the geolocation (via GEOIO.com) of the client IP address.  I have thousands of visitors to this site, but only map out 327 distinct locations.  This happens because of three factors.  

First, the geolocation from GEOIO.com is the location of the internet point-of-presence for that IP address.  This is probably a data center or switch location.  In other words, my next door neighbor probably has the same POP location that I have.

Second, I only keep the first four decimal digits of the geocode lat/lon pair.  If you keep 4 decimal places, you are ICBM close.  If you keep 6 digits you have very good accuracy, and at 7 digits, you are usually on the rooftop.

Third, in my query to set the mapping points I only SELECT the geocodes that lie within close geographical proximity to the school, since I am only drawing a small map.

So to the question of "good..."  Good is a relative term, a value judgement.  Is the POP location better than a ZIP code?  I don't know - that's for you to figure out in your application design.  It may or may not be useful.  You might want to look into HTML5 geolocation data.  I do not know whether this is going to be more accurate than geocoding for the IP address, but it would be the more current technology choice.
0
 

Author Closing Comment

by:cycledude
ID: 37805693
Thanks for the heads up ray, that site looks like it could be useful to me.  I got my location wrong from my ip address, but at least it was close.... ish!

It will be better than no location information at all.

Cheers

CD
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question