public OsmPathElementHolder getFromDetourMap(long id) {
        if (detourMap == null) {
            return null;
        }
        return detourMap.get(id);
    }
writes the track in binary-format to a file

@param filename the filename to write to
main/src/main/java/cgeo/geocaching/brouter/core/OsmTrack.java