Iphone creates a label for latitude and longitude

I want to place "contacts" on my map. I have a place for the location of the user.

Now I download the location feed from the Internet. For each of them I get latitude and longitude.

I want to put all this on a map. I know that I need to use a reverse geocoder, but I'm not quite sure how to do this. Plus, I read somewhere that you can only do it once, so I don’t know how to get all my results on the map.

Thanks for the help.:)

Tom

+4
source share
1 answer

To add a pin to the map, you need to do this:

CLLocationCoordinate2D coordinate; MKPlacemark *mPlacemark = [[[MKPlacemark alloc] initWithCoordinate:coordinate addressDictionary:nil] autorelease]; [mapView addAnnotation:mPlacemark]; 

And you can add any number of contacts =)

+10
source

All Articles