where does the computer store the users location

  • 3 Replies
  • 1980 Views
*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
where does the computer store the users location
« on: October 04, 2021, 03:16:45 pm »
so I built this java function to get the GMT of the computer, which requires the computer to know in which country/city it is

and I wonder how it has that info to begin with

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: where does the computer store the users location
« Reply #1 on: October 04, 2021, 04:13:37 pm »
On mobiles there should be a programming library to access the location (if user allows that).

On desktops, I believe, things are a bit trickier. There is no standard across operating systems that defines user location. On the contrary, that could be considered harmful, considering user privacy. But, there should be a way for detecting an IP address of a computer connected to the web. That IP address is connected to some web provider, and IP of the provider could be enough to narrow down the location of connected computer. I think this is what Google Search does. But on my desktop, it took several years, first to track down my country, then to track down my city, then to track down my location more precisely. But it was never showing my precise address (I bet not to scare me). I guess visiting some sites from Google Search and setting up my Google Mail account helped in tracking me down pretty much accurately.

But be careful, users usually don't like to give away their private info such are their exact location. I'm having this issue with Google. I'm uncomfortable for it knowing where I'm located. Not that I have to hide something, but it just feels wrong for the big brother watching me from the above. Yuck.

*

Don Patrick

  • Trusty Member
  • ********
  • Replicant
  • *
  • 633
    • AI / robot merchandise
Re: where does the computer store the users location
« Reply #2 on: October 04, 2021, 04:35:03 pm »
The computer doesn't store the location. The computer stores the IP address, which can be traced to a location using an online API service. However, the accuracy greatly depends on the service and the user's network provider. Websites will often assume I live in the capital of my country because they can't pinpoint the exact town, or they get the wrong town because my provider happens to have its main server there. They do get the country right, because there's a country code in the IP address. There are Javascript functions to get the user's IP address, I assume Java also has such a function.
CO2 retains heat. More CO2 in the air = hotter climate.

*

WriterOfMinds

  • Trusty Member
  • ********
  • Replicant
  • *
  • 617
    • WriterOfMinds Blog
Re: where does the computer store the users location
« Reply #3 on: October 04, 2021, 04:45:58 pm »
so I built this java function to get the GMT of the computer, which requires the computer to know in which country/city it is

In my experience, a desktop or laptop computer's time zone is not based on knowledge of its physical location. The time zone is chosen by the user during setup and can be changed arbitrarily thereafter. I have carried computers across time zone boundaries and connected them to the internet there without seeing the reported time change.

I think mobile devices can sometimes update the time zone by using geolocation.

Fully updated, internet-connected Windows 10 PCs provide local weather reports based on a location that you can set in the weather dashboard. It tries to detect your location automatically -- I suspect using the IP address, as described by others in the thread -- but you can also set it to something else.

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

261 Guests, 1 User
Users active in past 15 minutes:
squarebear
[Trusty Member]

Most Online Today: 491. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles