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

Is there a way to access a Mac's geolocation from terminal?

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.

myhd
  • 3.5k
  • 6
  • 30
  • 62