Coffee shops and automated teller machines might be ideal locations for automated external defibrillators, new data suggest.

In a Toronto, Canada, study, three major chain coffee shops and ATMs at the nation’s five largest banks represented eight of the top 10 spots for out-of-hospital cardiac arrest in the city and its downtown area.

“What this means is that health organizations, foundations and policymakers aiming to develop public access defibrillator programs could use our rankings to identify promising businesses to develop partnerships with for AED deployment,” said Timothy C.Y. Chan, Ph.D., Canada research chair in novel optimization and analytics in health, University of Toronto in Canada.

“Ultimately, we want to get AEDs in the right locations, so they are accessible when needed most,” he said.

An AED is a computerized medical device that recognizes when a person’s heart requires an electric shock to restore a normal rhythm. Voice prompts, lights and text messages from the device tell the rescuer the steps to take when a shock is needed.

To determine where best to place AEDs, researchers ranked different businesses according to how many cardiac arrests occurred within 100 meters and when they were open. From January 2007 to December 2015, 2,654 publicly located, non-traumatic out-of-hospital cardiac arrests occurred in Toronto.

“We found that coffee shops and ATMs ranked highly across several related metrics, and that those rankings were stable over the years,” Chan said.

The study is published in the American Heart Association journal Circulation.