Do you know when i go to maps.google.com its always find my exact city of location and not just say Europe/Athens.
and twitter and facebook too both of them pinpoint my _exact_ location.
How are they able to do it?
I need the same way.
Currently i have this that retrieves the ISP's city of origin and not the user's ip of origin
Can you help please?Code:try: gi = pygeoip.GeoIP('/usr/local/share/GeoLiteCity.dat') city = gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP'] ) host = socket.gethostbyaddr( os.environ['HTTP_CF_CONNECTING_IP'] ) except Exception as e: host = repr(e)