Kinda hackey, but I would just write a little function that searches through the string for a comma, use NSRange and pull the string apart up to the comma, place that string in an array, then continue through.
Thanks for the prompt reply based on the information provided am I correct to conclude that the iPhone 3G GPS produces NMEA Sentences from which specific comma delimited data can be extracted. Ant..
That's not at all what I meant. The iPhone does NOT spit out NMEA sentences. I mean you could write something to do that, but you need to look at the Core Location Service if you are interested in getting location information out of the device. The math and formatting of the sentences is for you to code.
Sometimes its not the question I guess its how I ask it and for any misunderstanding I apologise.
I am not currently running OS X Leopard or the SDK although I have an iPhone and some of the Apps Store applications that rely on the Location Device.
I guess what I was trying to ask was did the iPhone GPS [Location Device] support appropriately written code which can be used to extract specific GPS type information like Lat or the Lon, N/S or E/W or Speed over the Ground that sort of thing. This information is contained within standard NMEA sentences generated by most other types of Task Specific GPS Devices.
My experience has been with a Vista Desktop connected to a GPS Device like a Holux GPSSlim240 or QSTarzGPS Travel Recorder. Both these devices will stream NMEA sentences to a COM port which I can read with software that I have written for the Windows environment which embosses Lat/Lon Compass Headings and NMEA data onto a Digital Image.
I was trying to establish if the iPhone Location Device [GPS] also streamed standard NMEA sentences or similar and if that was the case I guess with appropriate code your could extract and manipulate the data of interest.
The knowledge I am not fixed with is whether or not the iPHones Location Data is different in that it only provides access to limited or Apple specific location information. Ant..
I just watched the video entitled ‘Leveraging iPhone Location, Acceleration Orientation, and System Information’. So I am not a little better informed event though the video appears not to address the improvements that have been delivered in the 2.1 iPhone 3G device. Anyway on that note I guess that I am now able to delare these proceedings closed.