class OSMTollParser implements TagParser {

    @Override
    public IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay readerWay, boolean ferry, IntsRef relationFlags) {
        if (readerWay.hasTag("toll", "yes"))
            tollEnc.setEnum(false, edgeFlags, Toll.ALL);
        else if (readerWay.hasTag("toll:hgv", "yes"))
            tollEnc.setEnum(false, edgeFlags, Toll.HGV);
        else if (readerWay.hasTag("toll:N2", "yes"))
            tollEnc.setEnum(false, edgeFlags, Toll.HGV);
        else if (readerWay.hasTag("toll:N3", "yes"))
            tollEnc.setEnum(false, edgeFlags, Toll.HGV);
        return edgeFlags;
    }

    public  OSMTollParser();

}