Local laws, which vary by jurisdiction, govern the safety and sanitary conditions of public and private swimming pools. A public swimming pool is typically defined to include any swimming pool operated for the use of the general public with or without charge, or for the use of the members and guests of a private club, including any swimming pool located on the grounds of a hotel, motel, inn, an apartment complex, or any residential setting other than a single-family home.
Regulations may include, among others, requirements for lighting and enclosures. Prior to installing a swimming pool, a permit must be often obtained. If the water supply for the pool is to be directly connected to the city water supply, or the existing drains are to be connected to the pool, then a separate plumbing permit may be required. Local laws should be consulted for specific requirements in your area.