Let's Meet in the Middle
Developer George Mandis built two macOS command-line tools that combine with jq to find the geographical midpoint between two addresses and search for nearby venues.
summary is enough The core concept and implementation of piping native macOS geolocation and MapKit CLIs through jq are fully captured in the provided code snippets.
summary
Developer George Mandis introduces two macOS-only command-line tools, whereami and nearme, built around the Unix philosophy of doing one thing well. By combining them with jq, users can geocode addresses, calculate a naive geographical midpoint between two locations, and query Apple Maps for nearby venues. The post provides shell and fish functions to automate this workflow into a single command without requiring API keys. While limited to macOS and naive coordinate averaging, it offers a clean, zero-config local utility.
key points
- whereami performs native macOS address geocoding and reverse geocoding without requiring location permissions or API keys.
- nearme wraps Apple's MapKit framework to search for categories like cafes and restaurants around given coordinates passed via stdin.
- A shell pipeline using jq slurps two addresses, averages their latitude and longitude, and passes the midpoint to nearme.
who should read it
macOS developers and command-line power users interested in lightweight, native automation utilities.
discussion warm
consensus
Commenters enthusiastically praised the adherence to the Unix philosophy and shared positive experiences testing the tools on macOS.
pushback
One user noted that nearme results weren't cleanly sorted by proximity or terrain limitations like uphill biking.
In the end I decided to create a command line tool based on your idea:
https://github.com/etewiah/meet-in-the-middle-chattymaps
It showcases immediate community engagement by sharing a newly created derivative tool inspired by the post.
Generated by an LLM from the article and thread. Check the sources before relying on it.