I don't know, there's a decent amount of rats where I live, but no outdoor dumpsters and very few public trashcans. Trash is kept indoors and brought out at the daily collection time.
I always assumed sewer access and the occasional rat-stronghold in poorly maintaned buildings was the issue.