class CarFlagEncoder extends AbstractFlagEncoder {

    protected double applyBadSurfaceSpeed(ReaderWay way, double speed) {
        // limit speed if bad surface
        if (badSurfaceSpeed > 0 && speed > badSurfaceSpeed && way.hasTag("surface", badSurfaceSpeedMap))
            speed = badSurfaceSpeed;
        return speed;
    }

    public  CarFlagEncoder();
    public  CarFlagEncoder(PMap properties);
    public  CarFlagEncoder(String propertiesStr);
    public  CarFlagEncoder(int speedBits, double speedFactor, int maxTurnCosts);

}