![]() |
2011-04-22
, 10:49
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#2
|
![]() |
2011-04-22
, 13:57
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#3
|
![]() |
2011-04-23
, 12:14
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#4
|
wget -O geocoord2.tmp "http://www.opencellid.org/cell/get?key=$KEY_OPENCELLID&mnc=$MNC&mcc=$MCC&lac=$LAC&cellid=$CELLID" 1>/dev/null 2>&1; LATb=`grep lat geocoord2.tmp | cut -f 6 -d " " | cut -f 2 -d "\""`; LONb=`grep lon geocoord2.tmp | cut -f 9 -d " " | cut -f 2 -d "\""`; echo "Geocoordinates : LAT=$LATb; LON=$LONb";
wget -O geocoord3.tmp "http://cellid.labs.ericsson.net/xml/lookup?cellid=$CELLID&mnc=$MNC&mcc=$MCC&lac=$LAC&base=10&key=$KEY_ERICSSON" 1>/dev/null 2>&1; LATc=`grep lat geocoord3.tmp | cut -f 6 -d \< | cut -f 2 -d \>`; LONc=`grep lon geocoord3.tmp | cut -f 8 -d \< | cut -f 2 -d \>`; echo "Geocoordinates : LAT=$LATc; LON=$LONc";
![]() |
2011-04-23
, 12:31
|
|
Posts: 932 |
Thanked: 278 times |
Joined on Sep 2009
@ Kentucky
|
#5
|
![]() |
2011-04-23
, 18:00
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#6
|
The Following User Says Thank You to Saturn For This Useful Post: | ||
![]() |
2011-04-25
, 11:20
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#7
|
i want to share a simple script in the hope that it might be useful for some of you. The script is very rudimentary and everything else than complete, robust or well written, just a quick hack which works for me.
What does the script do?
It reads cellid informations from your mobile using a specific dbus command ([1]). With this informations it enters a database and gets approximately your geo coordinates. For this you need to get a free API key from their webpage ([3]). In a final step this coordinates are used for a rough geo location using googles geo location API ([4]).
Is the script useful?
To be honest it is not very useful at least not for me
Installation
The script itself
Further informations:
Last edited by BluesLee; 2011-04-22 at 10:50.