Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is It Possible to get a (rough) Mobile Phone Location from a HTTP Request

If memory serves me correctly, google does this for the maps site. I know google's mobile maps app can determine the rough location (I assume using some kind of cell tower lookup), yet I seem to remember the site getting somewhat close to the current location when viewing on a mobile browser.

Anyone know how/if that's possible? Does the IP address change based on the tower or area (seems like they'd be using some kind of gateway common to the carrier)?

like image 752
Tim Lytle Avatar asked Jan 07 '10 05:01

Tim Lytle


People also ask

Can a cell phone IP address be traced?

Famous answer: It depends. If the Operator keeps a log of Public IP — Private IP, and a log of Private IP — IMEI, then it will be very easy to find you.

How accurate is Google find my phone?

It can be accurate up to 20 metres for Find My Android, and Find My iPhone has a range of accuracy settings.


1 Answers

With a regular HTTP request the only option you have is GeoIP but this will only give you the country & operator no better.

Depending on the application & device you are using there are various option for geolocation, for example iPhone & Android browsers suport the HTML5 geo javascript functions so you could put some code in the page to send you the location. However these all involve some client side code.

The other option involves doing a deal with the networks, they can supply you the phone number as an additional header in the request and you can then query this number via an API from the operator to get the location of the phone from the network. However they charge a pretty penny for this function and the accuracy can vary from about 100m in an urban environment to 35Km in very rural areas.

like image 193
Sam Machin Avatar answered Feb 15 '23 23:02

Sam Machin