Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onderweg/whereami-geojson
A command line tool for OS X to get your geographic coordinates using the CoreLocation framework; forked from WhereAmI
https://github.com/onderweg/whereami-geojson
Last synced: 13 days ago
JSON representation
A command line tool for OS X to get your geographic coordinates using the CoreLocation framework; forked from WhereAmI
- Host: GitHub
- URL: https://github.com/onderweg/whereami-geojson
- Owner: onderweg
- Fork: true (robmathers/WhereAmI)
- Created: 2014-06-17T16:08:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-09T20:04:12.000Z (almost 10 years ago)
- Last Synced: 2024-03-15T04:01:03.193Z (8 months ago)
- Language: Objective-C
- Homepage:
- Size: 137 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhereAmI-GeoJson
A command line tool to get your geographic coordinates in GeoJson format using the OS X [CoreLocation][] framework.Forked from [WhereAmI][].
## Usage
Open with Finder to execute, or in the terminal. If it can determine a location, it will output current location (longitude, latitude) in *GeoJson* format (whereas the original WhereAmI displays the data in plain text).
WhereAmI-GeoJson tries to get a recent location, and will not display one if it is more than a minute old (to avoid inaccurate results from CoreLocation's cached data). If it cannot get location data, it will quit and print an error message.
Example output:
{
"type" : "Feature",
"geometry" : {
"type" : "Point",
"coordinates" : [
5.26,
52.30276
]
},
"properties" : {
"name" : "Timestamp: 17\/06\/14 20:34:08 GMT+2"
}
}You can use [GeoJSONLint][geojsonlint] to test the output.
## Notes
This is a quick and dirty example. I make no guarantees or warranties as to its accuracy, stability or compatibility (it should work with 10.7 and 10.8, but I have only tested it on 10.7). Feel free to do with it as you wish.[corelocation]: http://en.wikipedia.org/wiki/CoreLocation
[WhereAmI]: https://github.com/robmathers/WhereAmI
[download link]: https://github.com/robmathers/WhereAmI/releases/download/v1.02/whereami-1.02.zip
[geojsonlint]: http://geojsonlint.com/