I've also gone through several posts of the group refering to this
topic but can't make meets end for something  aparently as simple as
reading a numeric value from gdir.getDistance().meters and stroring it
in a variable.  I'm sure I'm not the first to encounter this issue.

On Jul 2, 11:56 am, novitonics <[email protected]> wrote:
> Hello
>
> I've been trying for several days to be able to retreive the distance
> between 2 points and toss the value over to a variable. The idea is to
> compare 2 distances.
>
> The blog I'm using is  http://novitonics.blogia.com/
>
> I have made this function compareCandidates(c1,c2,st){}
> which should return true if the distance between st and c1 is smaller
> than st and c2. c1,c2,st are coordenates.
>
> I'm completely confused, dunno what I'm doing wrong, I have my
> listener: so that when the waypoints have been loaded onto the
> gDirections set a value to variables according to distance.
> Furthermore, I manage to show an alert with the distance but am unable
> to set this value as imput to a variable
>
> Nothing is working

-- 
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.

Reply via email to