You must use MapKit to display the map on the iPhone, you will have great flexibility and quick integration.
mapView, which is an instance of MKMapView, you will have to manipulate your line to extract long and lat, then
CLLocationCoordinate2D loc;
loc.latitude = extractedLatFromString;
loc.longitude = extractedLongFromString;
AddressAnnotation *pin = [[AddressAnnotation alloc] initWithCoordinate:loc];
[mapView addAnnotation:pin];
must do the job
source
share