Ideas on iOS GPS tracking needed

Jimmieson, Phil phil at liverpool.ac.uk
Thu Nov 5 10:03:16 EST 2020


Hi Graham,


PS The only test data I have been able to find for the XCode Simulator is a bike ride in California which runs along giving a succession of GPS . It is quite useful, but naturally it doesn’t involve anomalies.


You can make your own location simulations to run in the iOS simulator. They are .gpx files containing coordinate information in XML format.

I created one for my students to use on my App Development (in Swift) module. I managed to hack it together and made a simulated walk/run around part of the Liverpool University Campus. To make one these you need GPS coordinates (I got them from Google Maps) and times - the difference in time from the last step determines the speed that the marker travels from the previous step. Since it was done by hand, the times between steps don’t match well with the distances and so the walk turns into a very fast run once or twice, but it works as an example.

Copy and paste the text below into a text file and save it with a “.gpx” extension.





<?xml version="1.0"
      encoding="UTF-8"
      standalone="no"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
     version="1.1"
     creator="Phil Jimmieson and Jodie Zhou">
     <wpt lat="53.406566" lon="-2.966531">
<name>Ashton Building</name>
          <time>2019-11-22T08:59:46Z</time>
     </wpt>

     <wpt lat="53.406721" lon=" -2.966007">
<name>step 1</name>
          <time>2019-11-22T09:01:00Z</time>
     </wpt>

     <wpt lat="53.406120" lon="-2.965911">
<name>step 2</name>
          <time>2019-11-22T09:01:20Z</time>
     </wpt>

     <wpt lat="53.406068" lon="-2.965063">
<name>step 3</name>
          <time>2019-11-22T09:01:40Z</time>
     </wpt>

     <wpt lat="53.406081" lon="-2.964527">
<name>step 4</name>
          <time>2019-11-22T09:02:00Z</time>
     </wpt>

     <wpt lat="53.405493" lon="-2.964645">
<name>step 5</name>
          <time>2019-11-22T09:02:20Z</time>
     </wpt>

     <wpt lat="53.404834" lon="-2.964730">
<name>step 6</name>
          <time>2019-11-22T09:02:40Z</time>
     </wpt>

     <wpt lat="53.404553" lon="-2.965803">
<name>step 7</name>
          <time>2019-11-22T09:03:00Z</time>
     </wpt>

     <wpt lat="53.404610" lon="-2.966672">
<name>step 8</name>
          <time>2019-11-22T09:03:20Z</time>
     </wpt>

     <wpt lat="53.405390" lon="-2.966533">
<name>step 9</name>
          <time>2019-11-22T09:03:40Z</time>
     </wpt>

     <wpt lat="53.405966" lon="-2.966297">
<name>step 10</name>
          <time>2019-11-22T09:04:00Z</time>
     </wpt>

     <wpt lat="53.406049" lon="-2.967198">
<name>step 11</name>
          <time>2019-11-22T09:04:20Z</time>
     </wpt>
     <wpt lat="53.406350" lon="-2.967220">
<name>step 12</name>
          <time>2019-11-22T09:04:40Z</time>
     </wpt>
</gpx>

--
Phil Jimmieson
University of Liverpool, Computer Science Department
Ashton Bldg, Ashton Street, Liverpool. L69 3BX
0151 795 4236


More information about the use-livecode mailing list