iphone - ios: What is the efficient and recommended way to reverse geocode? -
i reverse geo code latitude , longitude of location , want address of location. have done through google web service takes time. want know if there other , efficient approach.
currently calling service,
nsstring * getaddress = [nsstring stringwithformat:@"http://maps.googleapis.com/maps/api/geocode/json?latlng=%@,%@&sensor=true",lattitude,longitude];
you can use clgeocoder
:
[self.geocoder reversegeocodelocation:location completionhandler:^(nsarray *placemarks, nserror *error){ clplacemark *placemark = placemarks[0]; nslog(@"found %@", placemark.name); }];
this still take time though, since both methods use web services convert lat / long place
Comments
Post a Comment