ios - MKLocalSearch returning results from outside region -


i'm searching places (would show businesses if possible) this:

    cllocationcoordinate2d currentcenter = cllocationcoordinate2dmake(self.locationmanager.location.coordinate.latitude, self.locationmanager.location.coordinate.longitude); mkcoordinateregion currentregion = mkcoordinateregionmakewithdistance(currentcenter, 15000, 15000);  mklocalsearchrequest *localsearchrequest = [[mklocalsearchrequest alloc] init]; localsearchrequest.naturallanguagequery = identifier; [localsearchrequest setregion:currentregion]; mklocalsearch *localsearch = [[mklocalsearch alloc] initwithrequest:localsearchrequest]; [localsearch startwithcompletionhandler:^(mklocalsearchresponse *respone, nserror *error) {     if (!error)     {         // result handling     } }]; 

but results include results other countries, why this? call method if cllocationmanager coordinate passes check:

cllocationcoordinate2disvalid 

thanks!


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -