On Jan 15, 11:13 am, "[email protected]" <[email protected]>
wrote:
> Hi,
>
> Sorry for the late answer, I hope that someone can help me about the
> 'getdistance' difference and the directionpanel.  As asked, here's the
> link :http://www.advani.be/Getdirections.htm

javascript:GLog.write(directions.getDistance().meters/1000+" km,
"+directions.getDistance().meters / 1609.344+" miles");

gives: 5.652 km, 3.5119899785254116 miles

javascript:GLog.write(gDir.getDistance().meters/1000+" km, "+
gDir.getDistance().meters / 1609.344+" miles");

gives: 8.533 km, 5.302160383361171 miles

(did you miss Andrew's post?)

  -- Larry

>

> Kind regards,
> Bart Syryn
>
> On 8 jan, 21:42, Marcelo <[email protected]> wrote:
>
>
>
> > On Jan 8, 9:16 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > I'm a newbie in using google-maps and java.  
>
> > There's no Java here.
>
> > > I've been able to load a
> > > route and also get the distance route.getDistance.
> > > The strange thing is that, when I GDirectionsload(from - to,
> > > travelmode:G_TRAVEL_MODE_WALKING) and the same with
> > > G_TRAVEL_MODE_DRIVING) I get a different result on my map and
> > > directionpanel,
>
> > Prove it.
>
> > > but when I call getDistance I always get the same
> > > distance.
> > > It's even stranger that the distance in the directionpanel is always
> > > different than the distance with getDistance.
>
> > Prove it.
>
> > Please read and follow the group's posting 
> > guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-......
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > > Can anyone tell me what the reason is, and how I can get the correct
> > > distance.
>
> > > Kind regards
> > > Bart Syryn- Tekst uit oorspronkelijk bericht niet weergeven -
>
> > - Tekst uit oorspronkelijk bericht weergeven -- Hide quoted text -
>
> - Show quoted text -
-- 
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