class OSMTrackTypeParser implements TagParser {

    @Override
    public IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay readerWay, boolean ferry, IntsRef relationFlags) {
        if (ferry)
            return edgeFlags;

        String trackTypeTag = readerWay.getTag("tracktype");
        if (trackTypeTag == null)
            return edgeFlags;
        TrackType trackType = TrackType.find(trackTypeTag);
        if (trackType != OTHER)
            trackTypeEnc.setEnum(false, edgeFlags, trackType);
        return edgeFlags;
    }

    public  OSMTrackTypeParser();

}