GsmMap without GPS

Bogdan Alecu b.alecu at yahoo.com
Sun Feb 6 12:49:40 UTC 2011


As I said in a previous post, I don't see why I need to have a GPS to get an approximation of my location. I then suggested using an open source cell list or Google API.
So, I have just finished writing a program that parses your kml file from the gsmmap, send the request to Google and it will get your approx location (just like Google Maps on your mobile) and write the result in another kml file.
The program is written in Java. To run it under windows: 

C:\Program Files\Java\jdk1.6.0_17\bin>java -jar glocation.jar
Usage: glocation -i <path to input file> -o <output file>


C:\Program Files\Java\jdk1.6.0_17\bin>java -jar glocation.jar -i c:\gsm.kml -o final.kml

Name : MNC 03 (T-Mobile)
Name : LAC 3030
Name : CELL-ID 0031
Name : CELL-ID 0032
Name : CELL-ID 135c
Name : CELL-ID 24a7
Name : CELL-ID 4c2a
Name : CELL-ID 4c31
Name : CELL-ID 4d10
Name : CELL-ID 51e3
Name : CELL-ID 537b
Name : CELL-ID 5567
Name : CELL-ID 5f8a
Name : LAC 4010
Name : CELL-ID 4c34
Name : CELL-ID 5b4b
---------------------------------------
Sending data to Google...
{"location":{"latitude":48.21451,"longitude":16.356414,"accuracy":511.0},"access
_token":"2:BaEsaRey871FCt1e:A5vJ-lyJuPrukpMV"}
lat=48.21451
long=16.356414



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110206/bb2990c7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glocation.jar
Type: application/java-archive
Size: 9296 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110206/bb2990c7/attachment.bin>


More information about the baseband-devel mailing list