Hi, Can someone tell me if it is possible to place multiple placemarks while using MKReverseGeocoder.
right now I can only put multiple placemarks while it only says "title", "subtitle".
If it is possible, please tell me how.
-(void)addPins:(CLLocationCoordinate2D) location
{
MKReverseGeocoder *geocoder=[[MKReverseGeocoder alloc] initWithCoordinate:location];
geocoder.delegate=self;
[geocoder start];
cPlacemark= [[CustomPlacemark alloc] init];
[map addAnnotation:cPlacemark];
[mLocationManager stopUpdatingLocation];
NSLog(@"locationmanager gestopt");
}
-(void)reverseGeocoder:(MKReverseGeocoder *) geocoder didFindPlacemark:(MKPlacemark *)placemark
{
mPlacemark = placemark;
cPlacemark.title = [NSString stringWithFormat:@"%@ %@", mPlacemark.thoroughfare, mPlacemark.subThoroughfare];
cPlacemark.subtitle = [NSString stringWithFormat:@"%@ %@", mPlacemark.thoroughfare, mPlacemark.subThoroughfare];
}