iHarder.net

LocateMe

Support This Project

Find Your Location from the Command Line

Download v0.2.1 (33k)

LocateMe is a Public Domain command-line tool that lets you find your location (latitude, longitude, etc) using Apple's geolocation services.

Follow the file release RSS feed...

Installation

Copy the LocateMe file to someplace on your path like /usr/local/bin, or leave it in a "current directory," and call it with ./LocateMe instead.

Enjoy!

Usage

        USAGE: LocateMe [options]
        Version: 0.2
        Outputs your current location using Apple's geolocation services.
          -h          This help message
          -g          Generate a Google Map URL
          -l          Generate long, multiline format
          -f format   Generate a custom output with the following placeholders
             {LAT}    Latitude as a floating point number
             {LON}    Longitude as a floating point number
             {ALT}    Altitude in meters as a floating point number
             {SPD}    Speed in meters per second as a floating point number
             {DIR}    Direction in degrees from true north as a floating point number
             {HAC}    Horizontal accuracy in meters as a floating point number
             {VAC}    Vertical accuracy in meters as a floating point number
             {TIME}   Timestamp (with date) of the location fix
             {HOST}   Computer hostname

        Examples:

         Command: LocateMe -f "lat={LAT},lon={LON}"
         Output : lat=12.34567,lon=98.76543

         Command: LocateMe -f "<lat>{LAT}</lat><lon>{LON}</lon><alt>{ALT}</alt>"
         Output : <lat>12.34567</lat><lon>98.76543</lon><alt>123</alt>

Clever Scripts

I previously blogged about using LocateMe to find a lost computer. You might find that interesting.

Changes

A Note About Public Domain

I have released this software into the Public Domain. That means you can do whatever you want with it. Really. You don't have to match it up with any other open source license—just use it. You can rename the files, do whatever you want. If your lawyers say you have to have a license, contact me, and I'll make a special release to you under whatever reasonable license you desire: MIT, BSD, GPL, whatever.


blog comments powered by Disqus