San Francisco was the 9th most populous city in America in 1900, with 342,782 residents. The only parts of the city that were not built up were the steepest hilltops and the "Outside Lands," large coastal sand dunes, on the western side of the peninsula.
Here is San Francisco in 1900:
source