The problem is that many places don't have a city value. There is no
logic to which elements of an address are included in the reply Photini
gets from OpenCage. You can see the mapping used here:
https://github.com/jim-easterbrook/Photini/blob/1a7947523aaaacba11799e6c27de83113fdc18d0/src/photini/address.py#L74
Photini errs on the side of including everything, as it's often a user
choice of what applies in a particular place. You are expected to edit
the values provided. I sometimes want house numbers, sometimes not.
What works in Germany may not work in the UK or the USA. In the UK a
city is a large town (usually) that has been granted city status. In
some countries it's any populated place.
--
Jim Easterbrook <
http://www.jim-easterbrook.me.uk/>