I'm not sure what you're trying to achieve, could you use the
"computeLength" function in the geometry library?

http://code.google.com/apis/maps/documentation/javascript/reference.html#geometry

Chris

--
http://twitter.com/broady



On Mon, Nov 28, 2011 at 1:42 PM, [email protected] <[email protected]>wrote:

> Hello
>    I have two markers, now i want to know the distance between this
> two points.But not the straight-line distance,the route is a user-
> defined.For example,the route is a KML file, these two points in this
> line, and now i want to know the distance between two points.Who can
> help me?
>    My English is poor,Forgive me!
>    Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to