Hi fellow developers,
I'm encountering an issue when using MKLocalSearch to search for cities. Here's my setup:
- I'm using MKLocalSearch with an MKLocalSearch.Request object.
- 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:
- Is this the expected behavior when searching for cities?
- Without an identity, how can I uniquely identify and store these city results in my database?
- Would it be appropriate to store the city name, country, and coordinates instead?
Thanks in advance!