10

How can I (or can I) create a GPX file that will run on the IOS simulator and provide course and altitude information?

I have added tags in the hope they might give altitude but no joy there.

The larger issues I am having in dealing with the simulation of locations include: 1. The GPX documentation gives no semantic information; 2. The I am unaware of any documentation on how the IOS simulator responds to GPX files; 3. Many of the links to sites from this board for creating GPX files seem to create files with tags that the IOS simulator seems to ignore.

Thanks

user3344003
  • 20,574
  • 3
  • 26
  • 62
  • What exactly are you trying to achieve? Are you trying to simulate the location of the device itself so that you can test location services code in your app? – Mike Mertsock Apr 06 '14 at 23:28
  • 1
    [This answer](http://stackoverflow.com/a/9359093/795339) describes the basics of simulating location—you create `wpt` elements in a GPX file. I tried adding `ele` child elements under some waypoints to simulate elevation changes, but my CLLocationManagerDelegate just reports 0 as the altitude. So I'm not sure if it's possible to simulate altitude or course. – Mike Mertsock Apr 11 '14 at 21:07
  • After 2 years, still there no answer for this question ? I'm having the same problem. – hoangpx Jun 28 '16 at 19:45
  • Adding _elevation_ tag don't seems to work for me but it's the GPX way of doing it so I guess that Apple still doesn't allow Simulator to work with it, here is the XML spec: http://www.topografix.com/GPX/1/1/#type_ptType – BuguiBu Apr 17 '17 at 08:24
  • 1
    Please file radars asking for these changes. You can give me the radar numbers and I'll see if I can follow up. – russbishop May 16 '17 at 16:56
  • I can confirm that as of 10/25/2018, this is still a limitation of the XCode simulator. In my case I am trying to simulate a flight path, so being able to include elevation is essential. I ended up creating my of mock layer that took as input json waypoints. – ra9r Oct 25 '18 at 16:42

0 Answers0