FrontPage | Mr Blog | HowTo | RecentChanges

MyLocationAPI

The folks at http://maps.alphadex.de/ successfully reverse engineered the Google "MyLocation" API. This is the API that Google Mobile Maps uses to determine the location of a cell phone, even without GPS. It does this by translating from cell tower ID to latitude/longitude.

That site posted some sample code in C# here - I don't use C# so I put together a hack of this code into normal C that can be run from the command-line. The code is not meant to be elegant, but simple and with almost no external dependencies - it doesn't need a HTTP library, MIME or other such. It's a simple pure C hack to show using the API. It should run on just about any platform, but has only been tested on Linux and Mac OS X.

Get it here:

See Also:

Disclaimer: The folks at http://maps.alphadex.de/ did the work here. I just ported their code. As they say on that site, this was performed in order to understand the inner work of the API with no commercial intention behind. It should be mentioned, that the use of the provided information out of the scope of learning and education may violate Google's terms and conditions.