Assign city location to keyword

Hello, I’m new here and tried search for the answer first.

I’m processing photos from the apple photos application. The photos are geo-tagged, but actually location information is processed dynamically in the application.

What I would like to achieve is adding basic information as a watermark on each photo, but non of the IPTC tags for things like city, state are populated.

My initial thought is as follows

  • For each photo, read the geo-cords
  • Use Google’s reverse geolocation to lookup information
  • Assign information to specific metadata tags

Unfortunately, I never learned javascript…

Does anyone know of an existing solution?

There’s no existing solution, and you’d have to code that up yourself.

I can give you the snippet of code you’d need to use after you have the city:

function processAsset(document, jsnode, asset) {
    asset.setMetaValue_forPropertyName_inMetaDictionaryName("St. Louis", "City", "{IPTC}")
    return true;
}