Last active
June 13, 2017 23:58
-
-
Save grocky/97c213d1253d688cc71653ed42c9e565 to your computer and use it in GitHub Desktop.
Get GeoLocation for OSX machine with JSON output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Requires LocateMe executable (brew install locateme) | |
LocateMe -f '{"latitude":{LAT}, "longitude":{LON}, "altitude": {ALT}, "speed": {SPD}, "direction": {DIR}, "horizontalAccuracy": {HAC}, "verticalAccuracy": {VAC}, "time": "{TIME}", "host": "{HOST}"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment