Re: [Google Maps API v3] The distance between two points,a user-defined route?

2011-11-27 Thread Chris Broadfoot
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, xinyun_0...@126.com 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
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] The distance between two points,a user-defined route?

2011-11-27 Thread xinyun_0...@126.com
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.