Tuesday, February 03, 2009
Telling the android emulator where you are.
telneted into an emulator you can poke in a pair of map co-ordinates to give the impression the GPS unit has just got a fix.
Fun thing to remember is that the latitude and longitude are the wrong way round: you put the longitude first. Additionally use minus signs instead of chars, remembering North and East are positive.
So to fix a position like 55.623131N 11.997169 becomes 11.997169 55.623131
telnet localhost 5554
telnet: connect to address ::1: Connection refused
telnet: connect to address fe80::1: Connection refused
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
geo fix 11.997169 55.623131
Note it uses proper decimal, such that 55° 35' 10" becomes 55.58611111.
For extra fun the
geocommand can even take a real
geo nmea $GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47
And if you tell the mapping application in the emulator to 'My Location', off the map will fly.
Labels: google android
Subscribe to Posts [Atom]