Inspector Rebus span a broad spectrum of Scotland, including council estates, tenements, business districts, nightclubs, prisons, dying mining towns, secluded villages and desolate hillsides, as well as the better-known pubs and streets of Edinburgh. Some of these locations are fictional, although they may be based on real places. For example, the Pilmuir estate is a conflation of the two real Edinburgh locations Pilton and Muirhouse. Other locations, such as the Oxford Bar, Arden Street, and St Leonards police station, are real. Frequent references to real places, or local politics firmly ground the Rebus series in the real world. Another strong feature of
Broughton, Edinburgh sold it in 2013. Gayfield Square Police station, which is featured in the Inspector Rebus stories written by Edinburgh-based writer Ian Rankin, is located on Gayfield Square in the south east of Broughton. Broughton High School was formerly located in Broughton, but is now located further west in Comely Bank. The Scottish poet Hugh MacDiarmid undertook part of his formal education at Broughton High. Schools still located in Broughton include Drummond Community High School, Broughton Primary School and St Marys RC Primary School. Edinburgh Trams operate services to & from York Place tram stop, near the top of Broughton Street.