Introducting mGPX

Searching the web for a good, and free, GPX importer for PHP yields not so great results. Last spring, as some preliminary work for WP Trainer took place, one wrote a simple ad hoc GPX importer for PHP. It then placed the points on a Google Map. Previously, there was a huge performance issue. However, today after looking over the code one found the error. What happened is the GPX importer didn’t import laps correctly for multi-activity and lap files. Instead of applying laps to the correct activity, the laps ended up summing and carrying over to other activities. The fix was simple, and the performance issue was resolved–300 points is not the limit, having several 300 point laps on the same map is what causes the problem.

With the fixes to it, the GPX importer is fast and ready for some extensive testing. WP Trainer is now viable, and effort will be placed into it this summer. mGPX will find its way to the code page as a separate

Added to this, Garmin added the feature to Garmin Training Center that allows exporting of individual activities, or groups to a file. Available in version 3.3.4, exporting is as simple as right clicking on a entry in the history section and selecting export in the pop up menu. This is great, as now end users can easily export small enough files (under 2MiB) for PHP to import.

-John Havlik

[end of transmission, stay tuned]

Posted in General | Tagged:
Updated: