So I've been looking at this for a while, and I can't seem to find a solution anywhere. I am trying to use CLGeocoder
in an iOS app to find the nearest city to where the user long taps on the map. I have two main problems:
- Even if the user is very zoomed out, and the user taps on say New York (which is what they intend), because of how zoomed out the map is,
CLGeocoder
often returns a nearby city instead of the more obvious answer of New York. I can't work out how to set the "fuzziness" of the search to overcome this issue. - In many instances the
City
field is null in the returned placemark object, most commonly in remote areas such as deserts or oceans. In this case, I would ideally want to find the nearest object that actually hasCity
defined, but can't work out how to do this.