Antonomasia

epithet or phrase takes the place of a proper name

Antonomasia is a kind of metonymy when you use a short phrase instead of something's name. For example, saying "The Big Apple" instead of New York City.