MKLocalSearch for cities not returning location identities

Hi fellow developers,

I'm encountering an issue when using MKLocalSearch to search for cities. Here's my setup:

  1. I'm using MKLocalSearch with an MKLocalSearch.Request object.
  2. I've set the resultTypes to .address to focus on address results.

The problem: When I receive the search response, it includes the locations as expected. However, these locations don't have an identity or alternative identities.

Questions:

  1. Is this the expected behavior when searching for cities?
  2. Without an identity, how can I uniquely identify and store these city results in my database?
  3. Would it be appropriate to store the city name, country, and coordinates instead?

Thanks in advance!

MKLocalSearch for cities not returning location identities
 
 
Q