views:

24

answers:

1

Hi there

I want to place "pins" on my map. I've got the one for the user's location.

Now I'm downloading a feed of locations from the internet. For each one I receive a latitude and longitude.

I want to place these all on the map. I know I have to use a reverse geocoder, but I'm not entirely sure how to do this. Plus I read somewhere you can only do one at once, so I don't know how I would get all of my results onto the map.

Thanks for you help. :)

Tom

+1  A: 

To add a pin to 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 pins =)

eviltrue
aha... brilliant :) How can I add a title to this? I can't find a title property anywhere! :(
Thomas Clayson
have you tried setting non-nil value to addressDictionary?
eviltrue
what is an address dictionary? (goes to google... :p)
Thomas Clayson