On Apr 8, 8:39 pm, "[email protected]" <[email protected]>
wrote:
> On Apr 7, 11:33 am, "[email protected]" <[email protected]>
> wrote:
>
> > On Apr 7, 11:21 am, muddy <[email protected]> wrote:
>
> > > I have this script 
> > > runninghttp://muddy-bikes.co.uk/trails.php?route=5&title=Hucknall%20to%20new...
> > > and i would like it to calculate the overalldistancein miles of the
> > > routes.
> > > Could anybody point me in the right direction on how to achieve this.
>
> > It looks to me like your GPX parser doesn't expose the polylines.  You
> > would need to modify it to expose the polylines (so you can use
> > EPoly.Distance() on them, which returns the total length of the path
> > in metres).
>
> Like this:http://www.geocodezip.com/muddy-bikes_trails.asp

Only seems to work in IE.  I'm not sure why, I think the original
problem was the xml parser (you pass request.responseXML which doesn't
always work for me with the proxy).

  -- Larry


>
>
> > Alternatively, you could reprocess thexmlto calculate thedistance...
>
> >   -- Larry
--~--~---------~--~----~------------~-------~--~----~
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