Post navigation

GPX from Google Maps KML J Script

In preparation for my Arizona jaunt to watch the May 20thannular eclipse I spent a few hours on Google Maps selecting locations to visit. Here are my prime targets.

After selecting targets the next step is to load them onto my “GPS device.” Currently my GPS device is the MotionX GPS iPhone app. MotionX can read GPX files in many ways but you need GPX files not Google Maps KML files. Converting KML to GPX is a recurring nuisance. I’ve used online converters for this chore but today, after being annoyed by this problem for the zillionth time, I dashed off a J script that transforms Google Maps KML to GPX. The main verb gpxfrmapkml is shown below. The entire script is available here and in the files sidebar. Browse to the J Scripts directory. Happy KML to GPX’ing my friends.