loca

Retrieve Mac latitude and longitude via CoreLocation with JSON output.

10|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Aayush9029/homebrew-tap --skill loca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loca
Source: https://github.com/Aayush9029/homebrew-tap/tree/main/skills/loca
Command: npx skills add https://github.com/Aayush9029/homebrew-tap --skill loca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Get your Mac location from the terminal using CoreLocation, enabling scripts to react to geolocation and status checks.

Core Features & Use Cases

  • Retrieve latitude and longitude for automation workflows.
  • Output location data in JSON for scripting pipelines.
  • Quickly verify macOS Location Services and permissions for a given user.

Quick Start

Run loca to print your Mac's current location in a readable or JSON format.

Frequently Asked Questions about loca

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get my Mac's geolocation from the terminal?

You can retrieve your Mac's geolocation from the terminal by running a command-line tool that accesses CoreLocation. It outputs latitude and longitude for use in automation workflows and quick location checks.

Can I get JSON output for macOS location data in a scripting pipeline?

Yes, you can get JSON output for macOS location data by using specific command-line options. This formats the latitude and longitude results for easy parsing within scripting pipelines.

How do I check macOS Location Services permissions from the command line?

You can check macOS Location Services and permissions by running a command-line utility that queries CoreLocation. This allows you to quickly verify if location access is enabled for your user.

What's the best way to handle timeouts and accuracy when fetching a Mac location?

The best way to handle timeouts and accuracy is to use the exposed command-line options. These settings control CoreLocation results and ensure your location retrieval remains reliable.

Does this command-line approach work without installing additional dependencies?

Yes, this approach works without additional dependencies because it directly interfaces with macOS CoreLocation. You can run it to print your current location in a readable or JSON format.

Why is my Mac location fetch not returning accurate results?

If your Mac location fetch is not returning accurate results, adjust the accuracy and timeout settings. These command-line options ensure CoreLocation has sufficient time to retrieve precise data.