Saturday, 15 August 2015

ios - CLGeocoder geocodeAddressString not working with partial place names (i.e. 'Lond' doesn't show 'London') -


I'm trying to use Apple's CLGOcoder to search for a location based on the string and its latitude / I get the longitude. I am using an immediate feedback system, so the address you type in, the suggestions are given below the field from which one can select, using this function:

 < Code> (zero) GeocodeAddressString: (NSString *) addressString completionHandler: (CLGeocodeCompletionHandler) complete handler  

However, it is opposed to any other word as opposed to its exact form Looks for the tokens separated from each location. For example, if I search for 'London', then I get "London, Sheopur, Madhya Pradesh, India" instead of "London".

How can I work with names in the CLGeocoder partial and return 'London' for the string 'London'?

Thanks,


No comments:

Post a Comment