>
> Don't look for a 'zero' distance from point to line, you wouldn't want
> to reject some point if it was 3mm off track.  To account for the
> width of streets you might want something like "within 25m" but that's
> up to you.
>
> As you say, you'd need to get the polyline associated with a route,
> not just waypoints, to account for curves and 
> doglegs.http://code.google.com/apis/maps/documentation/javascript/v2/referenc...

Hi Bill,
Thanks for your help.
So just to make sure, I'm asking again.
Can I use the distance function from a polyline (associated with a
route) even if it created a curve line (like in streets)?
I will use your advice about the distance>0.
Another thing, can you please be more specific how do I save, or using
the polyline (associated with a route) ?
I mean, I will create a polyline using these two points.
How do I add the route element to the polyline? (cause polyline is
something like array which holds few points...no?)
Thanks a lot!
Gil

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