[CoreLocation] Command-line tool possible?
I've been struggling all day to get the free toolchain running on my hackintosh but somewhere in the middle I started wondering if what I wanted to program was actually possible to make.
I want a tool that can be used exclusively from the command line that utilizes CoreLocation to display my iPhone 3G's current GPS coordinates.
Should be fairly easy to make, right? I've googled around a bit for a few tutorials on how to make basic CoreLocation applications with the iPhone SDK that displays coordinates in a pretty interface, but I want a tool that can be used from a terminal environment or SSH.
I found a utility that kind of lets me get the coordinates, but it doesn't use CoreLocation. I'm talking about Erica Sadun's findme utility. On her website she says the following about command-line tools with CoreLocation:
I've also looked at Locatable, but like findme it requires an internet connection to actually work.
Iím not using core location. Core location will not work from the command line due to authentication issues.
So, is the tool I'm looking to make / find possible to do?
In the end, I wish to use this tool to feed coordinates through a USB cable (SSH or some kind of serial connection) to a laptop where I'm using gpsd (or something like it), ultimately being used for a navigation program on the laptop, or adding coordinates to ESSIDs that I capture with aircrack-ng.
Thanks for taking the time to read this wall of text. :)