Reputation: 2149
I would like to know the ways in which I could estimate a user's physical location without having to request geolocation permissions on their browser. For example sites like cragslist, and gmail can estimate my location however I never granted them geolocation permissions through my browser.
So how are they doing this? through my IP? which service "translates" the IP to a physical location estimate? and can this be done exclusively on the client side?
Upvotes: 1
Views: 540
Reputation: 2032
http://ipinfo.io/ has a very nice and free api for getting estimated locations from IP address.
Upvotes: 1
Reputation: 15069
The ip address - there are plenty of services that you can submit the ip and get back the location, and even if it's a proxy ip or a real one.
Of-course it's not GPS based, and can eaily tricked using vpn.
here is one free geo ip
Upvotes: 1