Normally local codes prevail BUT I normally go no more then 24" from the trap and the trap located no more then 2ft from the vent
You CAN'T have a p-trap under the toilet! The p-trap is built into the toilet!
The trap is built into the toilet itself, you shouldn't put one in the drain.
of course you ding bat
1 1/4", only for the basin trap arm
A waste pipe gas trap, also known as a P-trap, is a U-shaped pipe used in plumbing systems to prevent the escape of foul sewer gases from entering a building. It works by creating a water barrier that traps the gases in the pipe, while still allowing wastewater to flow through freely. This helps to maintain a sanitary and odor-free environment in the building.
You could do that but you would need a trap to stop sewer gas from coming in. The toilet has the trap integrated into it. If you have access to underneath then you could add one.
The trap should be before the vent. The trap is used to maintain a watter barrier to prevent waste water and sewer gasses from entering the home. The vent is use after the trap to allow the water to flow freely in the pipe with out drawing the water from the trap.
It cant have more than 3 feet of length on it
A 50mm (2 inch) shower waste trap.
P-trap is to prevent gasses from passing thought the pipe. For example, in a residential setting, a p-trap is installed on all residential drains in order that sewer gases do not use the pipe as a conduit and enter the home.
An S trap is a length of water plumbing pipe used under sinks. The pipe is shaped like an S and prevents the pipe from becoming air locked. An air locked pipe cannot drain.
Absolutely NOT as NO sewerage shall enter a waste line (soil)It does require a "waste trap" such as a "P" type