Creating GPX file from array of CLLocation

chatur picture chatur · Jan 3, 2012 · Viewed 9.2k times · Source

My application needs to share array of CLLocations (Route) within devices using application.I have no experience of using GPX before this. Is GPX is best format to do it? How can I create GPX file from given such array of CLLocations? and is there standard GPX parser in Objective C? From what I have searched on net and SO answer to these questions are respectively

1.cant say
2. I have seen some webpages converting data of points in GPX format but could not find how they are doing it.
3. No

I will be happy if I get alternate answers/views. I understand that these are lot of questions. Any help or suggestion will be hugely appreciated.

Answer

Aleksandar Vacić picture Aleksandar Vacić · Apr 30, 2012

Watanabe Toshinori just became your new best friend (mine as well), code is here:

http://github.com/FLCLjp/iOS-GPX-Framework

http://github.com/FLCLjp/GPX-Logger

http://github.com/FLCLjp/GPX-Viewer