Felipe,

Eu vi seu exemplo e voce está calculando a distância percorrida de um ponto
ao outro, considerando a rota. O que você quer é calcular a distância
geográfica entre 2 pontos, então use o método
distanceFrom(other:GLatLng<http://code.google.com/intl/pt-BR/apis/maps/documentation/reference.html#GLatLng>)
da classe GLatLng

Felipe,

I saw your page and you are calculating the distance based on directions
between two points. As our friends posted before, you need to use the method
distanceFrom(other:GLatLng<http://code.google.com/intl/pt-BR/apis/maps/documentation/reference.html#GLatLng>)
of the GLatLng class.

If you have the two coordinates, you can also aply the mathematical
equation:

http://obsn3.on.br/~jlkm/geopath/



On Wed, Sep 2, 2009 at 9:37 AM, Felipe Gmail <[email protected]>wrote:

>
> Sorry but my english is bad !! rs
> Sorry again..my link is http://201.0.162.117:91/teste/
> Write the Adress on two fields and click on the Button.
> It do Will the route because I´m using GDirections and know that I can´t
> use
> GDirections !!
> But what code that I can´t use for calculate the distance for straight
> line?
> Regards
> Basso
>
> -----Mensagem original-----
> De: [email protected]
> [mailto:[email protected]] Em nome de Rossko
> Enviada em: quarta-feira, 2 de setembro de 2009 09:33
> Para: Google Maps API
> Assunto: Re: RES: How can i measure the distance between two points
>
>
> > Please some person help me...
> > Post a example of how I can do this..(Code or Website)
> > Calculate the distance between two points ((not for Route) for Straight
> > line)...measuring in km/metters or Lat/Lng
> > Please..post a example of a code that do this.
>
> You said you'd tried something.  Show us what you tried, and people
> will help you to get it working.
> Please post a link to your webpage, and not a code snippet.
>
>
>
> >
>

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