How to get coordinates from the xml in this form “lat,long”

Rmzfpoekhtjvq

New Member
I have successfully got annotations from xml file with this:\[code\] double realLatitude = [[[anns objectAtIndex:i] objectForKey:@"Latitude"] doubleValue]; double realLongitude = [[[anns objectAtIndex:i] objectForKey:@"Longitude"] doubleValue]; MyAnnotation *myAnnotation = [[MyAnnotation alloc] init]; CLLocationCoordinate2D theCoordinate; theCoordinate.latitude = realLatitude; theCoordinate.longitude = realLongitude; myAnnotation.coordinate=CLLocationCoordinate2DMake(realLatitude,realLongitude);\[/code\]xml file looks like this:\[code\]<key>Latitude</key><string>60.490275</string><key>Longitude</key><string>22.255962</string>\[/code\]but now I have a large list of points with coordinates that's look like this:\[code\]<key>Coordinates</key><string>27.864849695000,70.080733147000</string>\[/code\]what I need to change that my code works? Thanks!
 
Back
Top