Gps2midi is a project mainly written in SHELL and C, it's free.
GPS->MIDI conversion
GP2->MIDI conversion example script for iPhone OS. Shows how to convert CoreLocation data into OSC.