Thank you for reply. Now, I want to the function javascript return result same queries http://maps.googleapis.com/maps/api/directions/xml?avoid=highways&origin=21.00510,105.84321&destination=21.017690,105.847280&sensor=false&mode=drivingO2? But I do not fix?
On May 4, 4:57 am, Rossko <[email protected]> wrote: > > O1 : Get results based on queries > > :http://maps.googleapis.com/maps/api/directions/xml?avoid=highways&ori... > > This one has 'avoid highways' > > > O2: Get result use function javascript v3: > > This one does not have 'avoid highways' > > > But result returned is different. > > Yes. > > If you want to use '21.00510,105.84321' as origin/destination in the > javascript version, it would be better to create LatLng objects and > pass those to the Directions request instead of strings -- 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.
