google maps - how to find location from text entered in iOS -


i working on google map in ios. want search location based on text (address) enter. so, how can find location (latitude , longitude) entered text?

here code coordinate address

- (void)geocodefromaddress:(nsstring *)address {     //6     clgeocoder *geocoder = [[clgeocoder alloc] init];     [geocoder geocodeaddressstring:address completionhandler:^(nsarray *placemarks, nserror *error) {         if([placemarks count]) {             clplacemark *placemark = [placemarks objectatindex:0];             cllocation *location = placemark.location;             cllocationcoordinate2d coordinate = location.coordinate;             nslog(@"coordinate = (%f, %f)", coordinate.latitude, coordinate.longitude);         } else {             nslog(@"error");         }     }]; } 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -