All Projects → fulldecent → Corelocationcli

fulldecent / Corelocationcli

Licence: mit
Command line program to print location information from CoreLocation

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Corelocationcli

EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+2.9%)
Mutual labels:  gps, location, location-services
surger
⚡ Is there surge pricing around me right now?
Stars: ✭ 20 (-85.51%)
Mutual labels:  gps, location, location-services
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (-78.99%)
Mutual labels:  gps, location, location-services
Coregpx
A library for parsing and creation of GPX location files. Purely Swift.
Stars: ✭ 132 (-4.35%)
Mutual labels:  gps, location
Lost
A drop-in replacement for Google Play services location APIs for Android
Stars: ✭ 327 (+136.96%)
Mutual labels:  location, location-services
Rxlocation
🗺 [DEPRECATED] Reactive Location APIs Library for Android and RxJava 2
Stars: ✭ 503 (+264.49%)
Mutual labels:  location, location-services
android-amap-track-collect
这阵子由于项目需要,需要从手机上采集用户的运动轨迹数据,这样的功能大家都见到的很多了,比如咕咚、悦动圈,对跑步运动轨迹数据进行采集,再如,微信运动、钉钉运动,对于每一天你走步进行计数,如果要记录轨迹就离不开的手机定位,如果要记录步数那就离不开陀螺仪(角速度传感器),花了一天多的时间实现了一个定位数据实时采集的功能。
Stars: ✭ 50 (-63.77%)
Mutual labels:  gps, location
Indoorgps
Position Calculating with Trilateration via Bluetooth Beacons(Estimote)
Stars: ✭ 59 (-57.25%)
Mutual labels:  gps, location
Locationmanager
Simplify getting user's location for Android
Stars: ✭ 730 (+428.99%)
Mutual labels:  gps, location-services
P5.geolocation
a geolocation and geofencing library for p5.js
Stars: ✭ 75 (-45.65%)
Mutual labels:  gps, location
Phpgeo
Simple Yet Powerful Geo Library for PHP
Stars: ✭ 1,306 (+846.38%)
Mutual labels:  gps, location
Rxgps
Finding current location cannot be easier on Android !
Stars: ✭ 307 (+122.46%)
Mutual labels:  gps, location
iOS-MapKit-Tutorial
iOS MapKit Getting Started
Stars: ✭ 24 (-82.61%)
Mutual labels:  location, location-services
Live App Android
Build live location sharing in your Android app
Stars: ✭ 681 (+393.48%)
Mutual labels:  location, location-services
Leaflet Gps
Simple leaflet control plugin for tracking gps position
Stars: ✭ 90 (-34.78%)
Mutual labels:  gps, location
Locokit
Location, motion, and activity recording framework for iOS
Stars: ✭ 1,353 (+880.43%)
Mutual labels:  gps, location
Hrcarmarkeranimation
This android library is helpful for google map marker animation with Smooth turn and movement.
Stars: ✭ 52 (-62.32%)
Mutual labels:  location, location-services
Placepicker
Free Android Map Place Picker alternative using Geocoder instead of Google APIs
Stars: ✭ 126 (-8.7%)
Mutual labels:  location, location-services
react-native-device-country
Get device location by telephony (SIM card) or settings without using GPS tracker.
Stars: ✭ 33 (-76.09%)
Mutual labels:  gps, location
ReminderPro
ReminderPro(location, note, voice recording)
Stars: ✭ 27 (-80.43%)
Mutual labels:  location, location-services

CoreLocationCLI

CoreLocationCLI gets the physical location of your device and prints it to standard output. If you move it can also print your updated location. Kill it with CTRL-C.

Usage

Note for Mac users: make sure Wi-Fi is turned on. Otherwise you will see kCLErrorDomain error 0.

Usage

CoreLocationCLI -h
CoreLocationCLI [-follow] [-verbose] [-format FORMAT]
CoreLocationCLI [-follow] [-verbose] -json
Switch Description
-h Display this help message and exit
-follow Continually print location
-verbose Show debugging output
-format FORMAT Print a formatted string with the following specifiers
-json JSON output mode
Format Description
%latitude Latitude (degrees north; or negative for south)
%longitude Longitude (degrees west; or negative for east)
%altitude Altitude (meters)
%direction Degrees from true north
%speed Meters per second
%h_accuracy Horizontal accuracy (meters)
%v_accuracy Vertical accuracy (meters)
%time Time
%address Reverse geocoded location to an address
%name Reverse geocoded place name
%isoCountryCode Reverse geocoded ISO country code
%country Reverse geocoded country name
%postalCode Reverse geocoded postal code
%administrativeArea Reverse geocoded state or province
%subAdministrativeArea additional administrative area information
%locality Reverse geocoded city name
%subLocality additional city-level information
%thoroughfare Reverse geocoded street address
%subThoroughfare additional street-level information
%region Reverse geocoded geographic region
%timeZone Reverse geocoded time zone
%time_local Localized time using reverse geocoded time zone

The default format is: %latitude %longitude.

Output examples

./CoreLocationCLI
50.943829 6.941043
./CoreLocationCLI -format "%latitude %longitude\n%address"
50.943829 6.941043
Kaiser-Wilhelm-Ring 21
	Cologne North Rhine-Westphalia 50672
	Germany
./CoreLocationCLI -json
{"address":"407 Keats Rd\nLower Moreland PA 19006\nUnited States","locality":"nLower Moreland","subThoroughfare":"407","time":"2019-10-03 04:10:05 +0000","subLocality":null,"administrativeArea":"PA","country":"United States","thoroughfare":"Keats Rd","region":"<+40.141196,-75.034815> radius 35.91","speed":"-1","latitude":"40.141196","name":"1354 Panther Rd","altitude":"92.00","timeZone":"America\/New_York","time_local": "2019-10-02 23:10:05 -0400","isoCountryCode":"US","longitude":"-75.034815","v_accuracy":"65","postalCode":"19006","direction":"-1.0","h_accuracy":"65","subAdministrativeArea":"Montgomery"}

Installation

Install the latest release using Homebrew with:

brew cask install corelocationcli

Or build from the command line using the Xcode compiler with one of these commands:

xcodebuild # requires Apple Developer account
# ... or ...
swift build --disable-sandbox -c release --static-swift-stdlib # does not require account

Then run your executable from this location:

build/Release/CoreLocationCLI

macOS Gatekeeper/Notarization

After trying to run CoreLocationCLI for the first time, the process will be blocked by Gatekeeper, and a system dialog will appear which includes

"CoreLocationCLI" can't be opened because it is from an unidentified developer...

To approve the process and allow CoreLocationCLI to run, go to System Preferences ➡️ Security & Privacy ➡️ General, and look in the bottom right corner for a button to click.

After approving CoreLocationCLI, it should run successfully. For more information, see https://support.apple.com/en-us/HT202491.

Project scope

This project exists to provide a simple tool for getting a device's location. It is expected that this will be composed with other tools or used directly for testing and logging.

The project maintainer was a victim of kidnapping in his past. Meanwhile his laptop was opened by the captors, at the time CoreLocation CLI could have helped to identify the location of his captors. Since then, he continues to maintain the software, he uses the software so it could collect evidence in this situation again, and he is more careful about not getting kidnapped.

Contributing

Considering the project scope, please report any issues at https://github.com/fulldecent/corelocationcli/issues and recommend a fix if possible.

You can fund the project maintainer at https://github.com/sponsors/fulldecent. Even the most modest contribution will surely be noticed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].