I've got to ask a potentially silly question here. How do they know what each town has by way of industry?
Was there some sort of directory they are going by or is it pure chance?
I can't imagine a crack team of German spies crawling all along the coast of a far away land on the other side of the world building up a list of targets just in case war breaks out.
Yes. The German attacks are not random or just lucky.
Nurnberg is at first plying the northern shipping lanes from Prince Rupert with only a general idea of Canadian ports, and some intelligence reports on the state of the navy and fortifications, until they come inshore looking for coal and capture SS Prince Rupert, in the chapter entitled An Unexpected Turn. Serendipitously, Hungarian born Lieutenant Radl, the Second Officer of the Prince Rupert, has a personal grievance with his captain and decides to switch to the Central Powers cause. Radl is familiar with BC waters, particularly the Inside Passage, from sailing ships through them for years.
When planning the demolition of the infrastructure of the town of Anyox, they use a map taken from the manager's office, in the chapter entitled Critical Node.
Radl's knowledge informs Nürnberg's attacks on Prince Rupert, and down the north coast in the chapter entitled We are not Visigoths.
Nürnberg and Leipzig both receive orders in the Chapter entitled Don't Tread on Me to meet with the German trade commissioner from Vancouver in Barclay Sound, but they are not told why. When they finally arrive in the chapter entitled A Patient Man, they discover that the German trade commissioner has brought a father and son team of German born coastal pilots who wish to serve the fatherland.
Together Radl, Trade Commissioner Meyer, and the Muellers provide their knowledge when the attack on southern British Columbia is planned in the chapter entitled Any Other Surprises? And of course the three pilots, one on each of the attacking German ships, guide them through the Strait of Juan de Fuca and Georgia Strait to their targets.