Understood.. I do have one more question, in regular google map waypoints, there is a way to change the order by dragging the marker say for example a,b,c,d,e and f and switch c with d.. Is that possible with API???
Thanks! On Wed, Nov 3, 2010 at 6:44 PM, geocode...@gmail.com <geocode...@gmail.com>wrote: > On Nov 3, 3:48 pm, Kevin Davis <ke...@kevincdavis.net> wrote: > > Hi Larry, > > > > I did pass them in the order based upon in what I told you.. It seems > the > > array is picking up the address based upon the order in the listbox and > what > > I have chosen.. > > Maybe I don't understand you but I clicked on the bottom entry in the > list box first, then on the second. This is the order that appears in > the waypts array you are sending to the directions service: > Plato Center, IL > Dekalb, IL > > Your code that generates the waypoints array goes through the dropdown > in list order, not in order selected. If you want it to do that you > _have_ to write code to capture the order the waypoints are selected > in. And again, that is not a maps API issue, but a DHTML/javascript > issue. > > -- Larry > > > > > > > Kevin > > > > On Wed, Nov 3, 2010 at 4:18 PM, geocode...@gmail.com > > <geocode...@gmail.com>wrote: > > > > > > > > > On Nov 3, 1:22 pm, Kevin Davis <ke...@kevincdavis.net> wrote: > > > > Hi there, > > > > > > Based on the link below: > > > > > >http://kevincdavis.net/map_temp.php > > > > > > there is a map with waypoints, what I would like to do is show the > > > > directions based on the items I select in the list box. For example I > > > > would choose the 3rd location, then the 1st location, and the 4th > > > > location in that order I have described. However, Google choose the > > > > best route even though I have turned off the Route Optimization. > > > > > Google does them in the order you pass them in in the call. Have you > > > made sure that you change the order of the waypoints you send in the > > > request based on the order of selection? That part doesn't have > > > anything to do with the maps API. > > > > > -- Larry > > > > > > I just need some advise if that can be done or not.. > > > > > > Thanks! > > > > > -- > > > 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 > > > google-maps-js-api...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > <google-maps-js-api-v3%2bÂunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide > quoted text - > > > > - Show quoted text - > > -- > 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 > google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.