tags:

views:

13

answers:

1

Hi,

i am working on a application where i am saving the coordinates of a location in database now i need to use these coordinates and display the location on a map. Can some one please suggest me how can i change the latitude & longitude stored as NSString to coordinate. I want to use these coordinates to display an anotation on the map.

Thanks in advance

+2  A: 
   CLLocationCoordinate2D anyLocation = [[CLLocationCoordinate2D alloc] init];

   anyLocation.latitude = [latText doubleValue];

   anyLocation.longitude  = [lonText doubleValue];

latText and lonText are strings

Nithin