On Jan 15, 12:20 pm, "[email protected]" <[email protected]> wrote: > Hi, > > I specify in the code : > directions.load("from: " + location1.address + " to: " + > location2.address, {travelMode:G_TRAVEL_MODE_WALKING}); > > So I thought that getdistance gives me the distance. Isn't that > correct ?
That gives you the distance for the route calculated by that GDirections object. On your page the gDir GDirections object has the driving directions, the directions GDirections object contains the walking directions. printing the value from gDir.getDistance() will always return same distance unless you send another request with that object. -- Larry > How can I obtain the walking-distance like in the direction- > panel ? use directions.getDistance()... > Strange thing is that when I specify G_travel_mode_driving, or no > travelmode, I also get another distance from getdistance than the > direction panel. > > Kind Regards, > Bart Syryn > > On 15 jan, 20:35, Rossko <[email protected]> wrote: > > > > > > link :http://www.advani.be/Getdirections.htm > > > And how do we get that to demonstrate your problem? > > As Andrew said, there doesn't seem to be anywhere in your code that > > would read the walking distance.- 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.
