Modify GPX trans to support both of track and route

Modify GPX trans to support both of track and route