City name from location


How do I get the city name from location variable? Previously the city name used to show like Sundsvall, Härnösand but now it's changed to locality name and I can't find any other parameter with city name.

I couldn't find the question in the existing list?



Hi, any expert help on this?

Why can't kustom add an option to extract city from the location details, something like $li(city)$. I'm not always interested in locality, specially when I just want to track the weather of specific city and want the city name to be shown.