Skip to main content
deleted 1110 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

removed MoLo references in question body
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62

(Note the Mountain Lion update at end of question)

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

Update for Mountain Lion: The result of my 100 points bounty is: We have three working versions for OS X 10.8. Thanks to all involved!

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

(Note the Mountain Lion update at end of question)

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

Update for Mountain Lion: The result of my 100 points bounty is: We have three working versions for OS X 10.8. Thanks to all involved!

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit
Updated software info for corelocationcli
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62

(Note the Mountain Lion update at end of question)

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

Update for Mountain Lion: The result of my 100 points bounty is: We have three working versions for OS X 10.8. Thanks to all involved!

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

Works if binary is moved to /Applications, but feels rather unfinished anyway.
Output styleA summer 2014 version now supports single and continuous output of location data (continuously, app does not finish!see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

(Note the Mountain Lion update at end of question)

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

Update for Mountain Lion: The result of my 100 points bounty is: We have three working versions for OS X 10.8. Thanks to all involved!

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

Works if binary is moved to /Applications, but feels rather unfinished anyway.
Output style (continuously, app does not finish!)

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit

(Note the Mountain Lion update at end of question)

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should be CoreLocation, not a Geo IP service (data too low-res, needs online connection).

Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names.

Update for Mountain Lion: The result of my 100 points bounty is: We have three working versions for OS X 10.8. Thanks to all involved!

WhereAmI (1.02)

paulgrav built a new binary that runs on 10.8 (download). This is my personal recommendation, because it’s so simple, and has the best error reporting.
Output style:

Latitude: 63.518321
Longitude: 3.431305
Accuracy (m): 65.000000
Timestamp: 04.01.13 18:20:13 MEZ

LocateMe (0.2)

Works if binary is moved to /Applications. Output style (linebroken for readability):

<+63.518321,+3.431305> +/- 65.00m (speed -1.00 mps / course -1.00)
@ 04.01.13 18:22:48 Mitteleuropäische Winterzeit

corelocationcli

A summer 2014 version now supports single and continuous output of location data (see comment below). Output style:

<+51.91892126,+4.45120488> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:22:48 Mitteleuropäische Winterzeit
<+51.91902353,+4.45133598> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:17 Mitteleuropäische Winterzeit
<+51.91894650,+4.45124279> +/- 65.00m (speed -1.00 mps / course -1.00) @ 04.01.13 18:26:18 Mitteleuropäische Winterzeit
deleted 3 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275
Loading
dropped tag from title
Link
Dan J
  • 5.8k
  • 15
  • 48
  • 72
Loading
updated URL for WhereAmI
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
updated with new info from the December 2012 bounty phase
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
Notice removed Current answers are outdated by myhd
Bounty Ended with paulgrav's answer chosen by myhd
rephrased for readability
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
Tweeted twitter.com/#!/askdifferent/status/284419063487266816
updated headline, added MoLo tag
Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
Notice added Current answers are outdated by myhd
Bounty Started worth 100 reputation by myhd
updated with info for Mountain Lion, no IP-based gelocation
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
Clarified description
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading
Source Link
myhd
  • 3.5k
  • 6
  • 30
  • 62
Loading