What I'm looking for is an app (for iPhone 3g) similar to Erica Sadun's findme (
iLoJack,
Erica's Site) except that it can leverage the 3g's AGPS to get accurate coordinates. Basically the app is a command line tool (preferably a small app which can just be scp'd to /bin or /sbin and be done with) which when executed prints the current latitude and longitude of the iPhone. (Erica's tool outputs in XML, but it doesn't really matter). I looked around the filesystem to see if there was a device file which could be read and parsed to get GPS data ( I'm used to linux and bsd systems where this is a commonplace method of interfacing with hardware ) but could not find one.
Any help is appriciated
greatly. Thanks in advance.