Hi,
Many thanks for all the helping answers, but as I said, I'm a newbie
in this subject. As mentioned I changed the gDir.getDistance() to
directions.getDistance() see http://www.advani.be/Getdirections.htm
Strange thing is now that I'm not always getting the distance. When I
call the page, I sometimes get in the first attempt the distance
(checked by alert("test"), and sometimes I need to refresh my page 5
to 8 times to get the distance (and the alert-box). What am I doing
wrong here.
Maybe my whole script is wrong or so ?
Kind regards
Bart Syryn
On 15 jan, 21:34, Rossko <[email protected]> wrote:
> > I specify in the code :
> > directions.load("from: " + location1.address + " to: " +
> > location2.address, {travelMode:G_TRAVEL_MODE_WALKING});
>
> Yes, but where in your code do you use directions.getDistance() ?
> gDir.getDistance() is NOT the same thing, 'gDir' and 'directions' are
> two completely different things.
> See Larrys post.
--
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.