I am using google maps api to calculate the number of miles my company\'s vehicles travel in each state over a period of time. For trips taken over the period, the user wil
Looking at the directions text in the panel, it looks like the text "Entering " appears in the steps that cross state boundaries.
http://www.geocodezip.com/v3_example_geo2.asp?addr1=New%20York,NY&addr2=Washington,%20DC&geocode=1&geocode=2
(this is not documented, so might stop working)
You could also find the intersection of the Directions polyline with a set of state polygons.