Get my location through reverseGeocodeLocation

Asked

Viewed 224 times

0

I would like your help to solve a problem, I have a delivery system that gets my location using GPS, I’ve been reading something about "reverseGeocodeLocation", but I get only one result but it’s not always what I’m in case if I’m in my house in the middle of the block it returns the nearest address, could someone help me get the system to return the 4 streets around the block where I am, my app was programmed for ios with objective-c language, if anyone can help me I thank you.

1 answer

0

CLLocation *crnLoc = [locations lastObject];
latitude.text = [NSString stringWithFormat:@"%.8f",crnLoc.coordinate.latitude];
longitude.text = [NSString stringWithFormat:@"%.8f",crnLoc.coordinate.longitude];
altitude.text = [NSString stringWithFormat:@"%.0f m",crnLoc.altitude];

the altitude influence on the accuracy of the location.

  • Thanks for the information, but in my case I can get a result but if I’m in the middle of a block where there are 4 streets around the block, how I could get these four streets, some apps do this, an example that works perfect would be Ifood.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.