I recently noticed that the polyline returned in each step in a route does not always start and end with the coordinates the step says it does. For Instance, I ran a directions query from Fort Worth, TX to Austin, TX. The start and end points returned were:
32.72468 -97.32085 and 32.04823 -97.09488 and it's html was "Take the ramp on the <b>left</b> onto <b>I-35W S</ b>" The start point of the polyline was indeed 32.72468 -97.32085 but the last point of the polyline was 32.48797,-97.54039. The polyline also contained 603 points. This is a dramatic difference in location between what the path reports and the polyline shows. Furthermore, Step 3 started with the declared end point of Step 2 (32.04823 -97.09488) and continued on. There were breaks like this in other steps as well. Step 3 had the following start and end coordinates listed in the step: 32.04823 -97.09488 and 31.04757 -97.46572 and once again the Step 3 polyline started with the same coordinates (32.04823 -97.09488), but ended dramatically different with 31.21956,-97.61789 as the last point of the polyline. Step 4 was also off, but steps 5,6,7, and 8 had matching step coordinates and polyline start and end coordinates. The latter steps were also much shorter containing only a few sets of coordinates whil3 2,3 and 4 had several hundred coordinates each. So, does anyone have any idea why this is happening? If I try to plot the lines on a map abased on the polyline coordinates, I get several disjointed lines and they are definitely not the route from Fort Worth to Austin unless Google is assuming we can teleport along the path. I need the actual polylines as I am trying to determine total miles traveled per state and can do an intersect query in SQL spatial against a set of state polygons to determine which step subsections are in which states. If the polylines "wander" like this, I won't be able to use them. Regards, Cameron -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
