On Apr 23, 7:54 am, Jeff <[email protected]> wrote: > Will the created polyline stay on the roads, or be a straight line > between points? Also as part of my data set I have the direction of > travel as a float from 0-360, can that be of use?
It will be a straight line between the points. Probably your best option is to do end to end directions, then use the resulting polyline as opposed to trying to do directions between the individual points. -- Larry > > On Apr 23, 10:36 am, "[email protected]" <[email protected]> > wrote: > > > > > > > On Apr 23, 7:15 am, Jeff <[email protected]> wrote: > > > > I think our modems are 'supposed' to be accurate to 5 meters. He must > > > have been in the passing lane when that particular reading was taken. > > > > Is there a way to generate a polyline other than using a GDirections > > > object? > > > If you have the points you can create a polyline by passing it an > > array of > > GLatLngs:http://code.google.com/apis/maps/documentation/reference.html#GPolyli... > > > -- Larry > > > > On Apr 23, 10:02 am, William <[email protected]> wrote: > > > > > On Apr 23, 9:13 pm, Jeff <[email protected]> wrote: > > > > > > The waypoints are generated by a gps modem in a vehicle. I have no way > > > > > of changing or correcting them. > > > > > It's not very practical but it's possible to use Google Maps API to > > > > calculate adjustments so the points are on the correct side of the > > > > divided highway. > > > > > The data has precision of 4 decimal places (about 10 metres), so its > > > > worth moving each point 0.00005 degrees to the North, South, East and > > > > West, to see if that reduces the distance to the next waypoint. > > > > > The following map shows how it might work, illustrating the points > > > > which are the wrong side of the freeway: > > > > >http://www.william-map.com/20100423/1/map.htm > > > > > ... > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Google Maps API" 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 > > > > athttp://groups.google.com/group/google-maps-api?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Maps API" 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 > > > athttp://groups.google.com/group/google-maps-api?hl=en.-Hidequoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps API" 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 > > athttp://groups.google.com/group/google-maps-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" 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 > athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
