The tail of two location services<br><br>Tom Pohl updated a software package this weekend that takes a picture when his Mac is turned on or resumes from suspend. (see <a href="http://tompohl.com/2010/01/23/howto-track-your-mac/">http://tompohl.com/2010/01/23/howto-track-your-mac/</a> ) At the time I didn&#39;t know that he had code that grabs the location of the laptop as well, so I suggested he attach it as exif data to the image.<br>
<br>Coincidentally, at the same time, I got a tweet from @commandlinefu about how to post a message to twitter with location data from the command line. I looked at the example [1] and played with it a little.<br><br>The quality of this result is no where near as good as what is done by my Android phone or my ipod touch (both using the Google maps application). In both cases GPS is off and it&#39;s using information about wifi to locate me.<br>
<br>It&#39;s accurate to within 15 feet! (I&#39;m not kidding!)<br><br>The <a href="http://api.hostip.info">api.hostip.info</a> service has located me in Denver CO. Off by about 674 miles. (but, it at least put me in the right country, which is really OK for a free service).<br>
<br>I really had no idea that wifi could be used to calculate a location. How is this possible, and is there a way to use this information in a script or service?<br><br>[1] <a href="http://www.commandlinefu.com/commands/view/4643/a-command-to-post-a-message-to-twitter-that-includes-your-geo-location-and-a-short-url">http://www.commandlinefu.com/commands/view/4643/a-command-to-post-a-message-to-twitter-that-includes-your-geo-location-and-a-short-url</a>.<br clear="all">
<br>-- <br>Matthew Nuzum<br>newz2000 on freenode, skype, linkedin, <a href="http://identi.ca">identi.ca</a> and twitter<br>