A new method for estimating the pattern speed of spiral structure in the Milky Way