On macOS, use CoreLocationCLI to get your current location in the cli. (I think it requires wifi enabled).