Hill Street Blues was meant to be set in an 'anonymous' inner city on the east side of the United States. The police precincts were Decker Avenue, Hill Street, Jefferson Heights, Midtown, Polk Avenue and South Ferry. Many people mistakenly thought it was set in New York and the writers did seem to tease people by mixing different filmed locations and making reference to different areas in different episodes.
In fact it was filmed mainly in Los Angeles and Chicago. The opening sequences featured aerial shots of Chicago's railways. The police patrol cars are almost identical to the Chicago ones of the time, the words 'Chicago Police' being replaced with 'Metro Police'.
The Precinct House used for link shots and in the closing sequences, was in fact, a real police station. Built in 1889, the Maxwell Street Police Station at Maxwell and Morgan finally closed it doors in 1997. However, it was renovated and is now the home of the University of Illinois Campus Police.
In the last episode of Hill Street Blues, the precinct house is gutted by fire.
https://www.youtube.com/watch?v=6GxR2FLC1WM