The purpose of this legislation, known as the Kelsey Smith Act, is to enhance public safety by ensuring that telecommunications service providers can quickly provide location information of users' devices to law enforcement or emergency responders during critical situations. This is particularly aimed at emergencies where there is a risk of death or serious physical harm, or when someone has called for emergency services.