The word throughout is used as a C. preposition in this sentence.
When you are referring the the physical location, such as here (throughout the city), then it is a preposition.
If it is not physical, such as in - throughout her entire life - then it is an adverb.