convert-units has a simple chained API that is easy to read. It can also be configured with the measures that are packaged with it or custom measures.
The plugin calls Nominatim to resolve the coordinates and writes them to your configured output keys. If a location can’t be resolved (or a template placeholder can ...