Page 1 of 1

Location on Desktop or Laptop

Posted: Thu Jun 04, 2020 5:59 pm
by hrcap
Hi All,

I hope that everyone is well.

I have managed to get the mobilesensors to work to get the location of a user using a mobile device.

Is it possible to get the location of a user who is using a desktop or a laptop? For example when using the map widget the map seems to be able to automatically detect my location.


Many Thanks

Hadleigh

Re: Location on Desktop or Laptop

Posted: Fri Jun 05, 2020 8:01 pm
by richmond62
I assume to get someone's location one would have to work out something to do with their MAC address and their ISP.

Or tap into what Google knows about them.

To my mind this raises a few odd thoughts about whether this is not intruding on someone's privacy.

Re: Location on Desktop or Laptop

Posted: Fri Jun 05, 2020 8:51 pm
by FourthWorld
The shell function may do the trick, provided you have access to the 'net:
https://www.howtogeek.com/405088/how-to ... sh-script/

Re: Location on Desktop or Laptop

Posted: Sat Jun 06, 2020 9:39 am
by mrcoollion
You Could use an API from one of the following providers.
Not all of them give the best result but just try.
Most of them are paid services above a number of free calls per month.
For a list (but not all) see: https://rapidapi.com/blog/ip-geolocation-api/
The best result I got was from https://ipdata.co/
But there are many more....
Maybe you could also try to use an existing website and get the info from the return webpage ? https://www.iplocation.net/ip-lookup?qu ... ##.###.### where ###.###.###.### is the internet IP adres.

Just some idea's,

Regards,

Paul

Re: Location on Desktop or Laptop

Posted: Fri Jun 12, 2020 3:50 pm
by richmond62
This might be worth a look:

https://en.ipip.net/