| Crates.io | geo-loc |
| lib.rs | geo-loc |
| version | 0.1.0 |
| created_at | 2025-10-04 07:34:03.356909+00 |
| updated_at | 2025-10-04 07:34:03.356909+00 |
| description | A command-line tool to print the host's geographic location in pipe-friendly formats |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1867637 |
| size | 62,763 |
A command-line utility to print the host's current geographic location in a pipe-friendly format. It queries native location services (CoreLocation on macOS, GeoClue on Linux) or falls back to IP-based geolocation, outputting in human-readable or machine-parseable formats.
Many location tools are GUI-based or verbose. geo-loc follows Unix principles: silent operation, clean exit codes, and output suitable for scripting and pipelines. It's designed for automation, monitoring, or quick location checks without opening browsers or editing files.
cargo install geo-loc
git clone <repo>
cd geo-loc
cargo build --release
make install # For system-wide install
# or make local-install # For user install
Get your location:
geo-loc
# Output: 58.5054 15.9724
For detailed options, formats, providers, and examples, see the man page:
man geo-loc # After system install
# or
man ./geo-loc.1 # From source
BSD 3-Clause