A new app tells beachgoers whether it's safe to be in the water.

SF Beaches, a free app available on both iOS and Android, indicates how much bacteria is in the water by flashing a green, yellow, or red light. The app is a part of a collaboration between the San Francisco Public Utilities Commission and the San Francisco Department of Public Health.

According to CBS San Francisco, the app will generate data for 14 city beaches.

Samples are collected weekly and there will be additional monitoring in situations like when discharge from a sewer system is affecting beaches, according to the San Francisco Public Utilities Commission.

A search for the app on Google Play shows that it is not yet available, but it is currently in the iOS App Store.

[CBS San Francisco]