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.
