Our great sponsors
-
locationator
A simple macOS menubar app that provides access to the macOS Location Services reverse geocoding API via a local web server as well as a command line tool.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Apple provides a great API for performing reverse geocoding (finding the address and other details of a location given a latitude and longitude). For example, Photos uses this to add additional location context to images. I wanted to use this from my own command line utilities but due to the necessary app permissions, Apple has basically made this impossible. Thus Locationator was born. Locationator is small menu bar/ status bar app that provides a web-based API for performing reverse geocoding from the command line. For example, with Locationator running you can do this in the terminal:
Locationator also comes with an optional CLI that can be used to perform reverse geocoding on images from the command line or perform the reverse geocoding and then write the location data to the file's XMP metadata using exiftool. It also comes with two services for doing the same from the Finder or other apps using the Services menu.