On Feb 8, 11:25 am, JKurtock <[email protected]> wrote:
> 6378137 meters.
>
> For this very precise answer to make some sense, I have to refine
> Andy's question somewhat: "How does Google Maps convert a pair of
> LatLngs into a distance in meters?"

That's not what the OP asked.


>
> Note that, despite what you learned in the Third Grade, the Earth is
> NOT round.

Are you taking the piss?


> The
>result is equal (confirming that Google is using a sphere) and
>converts to a radius of 6378137 meters.

6378137 meters ... and how much did I say?


>
> Marcelo: SRID 4326 is not a sphere, but a spheroid.

Really? well, thank you for enlightening me! It's amazing what you can
learn after programming for 15 years.

>
> Using a sphere to approximate the shape of the Earth instead of one of
> the oblate spheroids can produce errors of 100s of meters over long
> distances.  But if you're trying to determine the distance from
> Whiteman Air Force Base to Baghdad using Google Maps, you're using the
> wrong tool.

I'm not trying to determine any distance. The OP asked for a radius
and I gave him one.

--
Marcelo - http://maps.forum.nu
--





>
> - Jeff
>
> On Feb 7, 10:33 pm, Marcelo <[email protected]> wrote:
>
>
>
>
>
>
>
> > In PostgreSQL I use SRID 4326, and that has an Earth radius of 6378137
> > meters.
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > On Feb 7, 9:12 am, andy <[email protected]> wrote:
>
> > > hi,
>
> > > need help for correct google earth radius.
>
> > > i am getting + 7 km approx mismatch on results.
>
> > > i am passing 3961 miles as earth radius.
>
> > > andy

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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