Hi David,
On Nov 11, 2009, at 3:39 PM, David wrote:
> I downloaded a free app "GPS Stone" and I thought that it would work
> ok. I recorded my commute, exported the gpx file and tried uploading
> it to chargecar I got this error:
>
> There was an error processing your raw data file. Please verify that
> your file is not corrupt.
Thanks for the info. I got your other mail with the GPX attached,
thanks. Unfortunately, it, too, is invalid according to the GPX
schema. The problem is twofold:
1) The child elements of the <trkpt> element are in the wrong order
2) The timestamp in the <time> element is formatted wrong
For example (I've obscured your lat/long for privacy):
<trkpt lat="XX.XXXXX" lon="YY.YYYYY">
<time>2009-11-11T08:39:59Z AM</time>
<hdop>17.068495</hdop>
<magvar>192.000000</magvar>
<ele>237.000000</ele>
<vdop>23.164150</vdop>
</trkpt>
The "AM" part of the timestamp shouldn't be there (it's 24-hour time),
and the elements must be listed in the following order: ele, time,
magvar, hdop, vdop
>
http://www.w3schools.com/XML/xml_validator.aspl
The w3schools validator merely validates well-formedness, and doesn't
actually validate against the schema (they say so somewhere on the
page, but it's not obvious and easily missed). Same must be true for
the
chrislacy.net site.
> Timestamps in the file do not appear to be fractional and it only
> records a trkpt every 2-3 seconds so I am not sure that it will
> capture data to the level chargecar requires. Still looking for an
> accurate gps/gpx app for the iphone.
The best I've found so far is MotionX-GPS (
http://gps.motionx.com/),
but beware that you can't (well, shouldn't) just upload the GPX file
that it exports because they truncate the fractional seconds. I have
some code which will convert the KMZ file (also exported by MotionX-
GPS) to a GPX with fractional timestamps, but we've kinda been hoping
MotionX-GPS would start using fractional-second timestamps in their
GPXs rather than our having to add special-case code to
chargecar.org. Maybe in the meantime I can make the conversion tool
more user-friendly and release it for y'all to try.
Finally, we're working on our own iPhone app. More details to come in
mid-late December.
Chris