If you would like to display both a separate entries, we could format it as "Lisboa, Portugal (city)" and "Lisboa, Portugal (disctrict)".
It would be more work as the type needs to be piped through and the type needs to be translated, but it might be more resilient to some edge cases I'm not aware of.
For example, Lisboa doesn't have a state so it's displayed as "Lisboa, undefined, Portugal".
Before/After
When searching for "Lisboa" using the API it returns both the city of Lisbon and the district.
If you would like to display both a separate entries, we could format it as "Lisboa, Portugal (city)" and "Lisboa, Portugal (disctrict)".
It would be more work as the type needs to be piped through and the type needs to be translated, but it might be more resilient to some edge cases I'm not aware of.