Yes, it'd be nice to have such an API, agreed. This has been filed as
a feature request for a future version of My Tracks.
I have to start thinking about what should be done, assuming that the first version of the API will probably be limited to a few basic operations.
View Larger Map