$解:(2)如图①,作点A关于l的对称点 A',$
$过点A'作A'E⊥BC,交BC的延长线于点E,$
$过点A作AF⊥BC于点F, 连接 A'P,A'B,$
$则易得四边形ADCF,四边形DA'EC,$
$四边形AA'EF都是长方形, AD=A'D,PA'=PA .$
$∴PA +PB=PA'+PB≥A'B.$
$∴PA+PB的最小值为A'B的长$
$∵AD= 5\ \mathrm {\ \mathrm {km}},BC=7\ \mathrm {\ \mathrm {km}}, AB=7\ \mathrm {\ \mathrm {km}},$
$∴EC=A'D=AD=FC=5\ \mathrm {\ \mathrm {km}},\ $
$则BE=BC+CE=12\ \mathrm {\ \mathrm {km}},$
$BF=BC-FC=2\ \mathrm {\ \mathrm {km}}.$
$在Rt△ABF 中,$
$由勾股定理,得AF=\sqrt{AB²-BF²}$
$=\sqrt{7²-2²}= 3\sqrt{5}(\ \mathrm {\ \mathrm {km}}),$
$∴A'E=AF=3\sqrt{5}\ \mathrm {\ \mathrm {km}}.$
$在Rt△A'BE中,由勾股定 理,得$
$A'B=\sqrt{A'E²+BE²}$
$= \sqrt{(3\sqrt{5})²+12²}=3\sqrt{21}(\ \mathrm {\ \mathrm {km}}),\ $
$∴PA+PB的最小值为3\sqrt{21}\ \mathrm {\ \mathrm {km}}$