![]() |
[Announce] cellid2geolocation.sh
1 Attachment(s)
Hello,
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:) I wrote it initially for profile switching purposes. Cellid informations are not enough to locate your position accurately. Nevertheless, it might be useful for other purposes. Installation
The script itself Code:
Further informations: |
Re: [Announce] cellid2geolocation.sh
oh boy, this is well sexingtons. I have been trying to work out how to get a geolocation to my bash scripts without resorting to all that pyton ***.
|
Re: [Announce] cellid2geolocation.sh
Works nicely.. thanks
|
Re: [Announce] cellid2geolocation.sh
Here is also some code that could be plugged if someone want to use other services.
This one is for the www.opencellid.org. It doesn't seem to have a restriction but the DB is quite limited and the results are even worse. Code:
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; The database is quite good but also has a trial period of 1000 requests. Code:
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; There is also a hidden google API for cellids but didn't tried it yet. Hope it's usefull. |
Re: [Announce] cellid2geolocation.sh
Does this obtain the location of the phone remotely via a computer?
|
Re: [Announce] cellid2geolocation.sh
Quote:
I'm investigating how it could be used in SMSCON to get some additional info or make it a background process (e.g. like the battery monitor) that logs in regular intervals the cell info. Later could be plotted in a map and thus get a cheap in battery location tracking. Very interesting stuff (in my opinion), just too little time to play.. :) |
Re: [Announce] cellid2geolocation.sh
FYI, did some fiddling with the google APIs and made a poor man's GPS app.
See more here: http://talk.maemo.org/showthread.php?t=72497 |
All times are GMT. The time now is 04:44. |
vBulletin® Version 3.8.8