A GPX Parser in ActionScript 3

January 14th, 2009 by Rob

GPX is the standard XML format used to store routes, tracks, waypoints and other data for GPS units.

I’m working on a parser in AS3 that will load a GPX file and expose all the information inside as ActionScript objects. See a test using Google Maps below.

Click “Load” to load the file from my server (this is a file containing a short bike ride around Victoria, BC), or click “Browse…” to load your own GPX file.

I haven’t tested this very extensively, so if your file has features that mine doesn’t, it may fail. If it does, please leave a comment! I’ll be uploading this to Google Code as soon as I do some more tests.

Note: you’ll need Flash Player 10 to use the browse button.